aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-02-14 11:20:57 +1100
committerGitHub <noreply@github.com>2021-02-14 11:20:57 +1100
commit101990139f3efc0d61491d58f41474f5bc039c66 (patch)
tree20f398f17e262ac74bfb1f2d19a17cd027577321
parent8af7e5ea81f6120b5ce13212b8acbb58ee66c0a5 (diff)
downloadqmk_firmware-101990139f3efc0d61491d58f41474f5bc039c66.tar.gz
qmk_firmware-101990139f3efc0d61491d58f41474f5bc039c66.zip
Disable VIA protocol's EEPROM reset and bootloader jump commands (#11892)
* Disable VIA protocol's EEPROM reset and bootloader jump commands, and allow for reinstation through #define. * Removed at Wilba's suggestion.
-rw-r--r--quantum/via.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/quantum/via.c b/quantum/via.c
index 7c3b7f924..62a16624f 100644
--- a/quantum/via.c
+++ b/quantum/via.c
@@ -370,19 +370,6 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
370 dynamic_keymap_set_buffer(offset, size, &command_data[3]); 370 dynamic_keymap_set_buffer(offset, size, &command_data[3]);
371 break; 371 break;
372 } 372 }
373 case id_eeprom_reset: {
374 via_eeprom_reset();
375 break;
376 }
377 case id_bootloader_jump: {
378 // Need to send data back before the jump
379 // Informs host that the command is handled
380 raw_hid_send(data, length);
381 // Give host time to read it
382 wait_ms(100);
383 bootloader_jump();
384 break;
385 }
386 default: { 373 default: {
387 // The command ID is not known 374 // The command ID is not known
388 // Return the unhandled state 375 // Return the unhandled state