diff options
| author | Ilya Zhuravlev <whatever@xyz.is> | 2021-03-03 11:12:07 -0500 |
|---|---|---|
| committer | Ilya Zhuravlev <whatever@xyz.is> | 2021-03-03 11:12:07 -0500 |
| commit | ce49d6f644fc8ba9de7135c6b12334d5df22fbcf (patch) | |
| tree | ad0412683cb52789a2a8f6b4373984c59fabcee9 /quantum/via.c | |
| parent | 5cf1c7398f65175fd33d2985a9fd12a5a922d666 (diff) | |
| parent | 0b6ff594484c90d34af787f03b45bae22447af60 (diff) | |
Merge remote-tracking branch 'qmk/master' into vial
Diffstat (limited to 'quantum/via.c')
| -rw-r--r-- | quantum/via.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/quantum/via.c b/quantum/via.c index 20f33e889e..9be202136d 100644 --- a/quantum/via.c +++ b/quantum/via.c @@ -412,16 +412,12 @@ void raw_hid_receive(uint8_t *data, uint8_t length) { dynamic_keymap_set_buffer(offset, size, &command_data[3]); break; } - case id_eeprom_reset: { - via_eeprom_reset(); - break; - } +#if defined(VIAL_ENABLED) && !defined(VIAL_INSECURE) + /* As VIA removed bootloader jump entirely, we shall only keep it for secure builds */ case id_bootloader_jump: { -#ifdef VIAL_ENABLE /* Until keyboard is unlocked, don't allow jumping to bootloader */ if (!vial_unlocked) goto skip; -#endif // Need to send data back before the jump // Informs host that the command is handled raw_hid_send(data, length); @@ -430,6 +426,7 @@ void raw_hid_receive(uint8_t *data, uint8_t length) { bootloader_jump(); break; } +#endif #ifdef VIAL_ENABLE case id_vial_prefix: { vial_handle_cmd(data, length); |
