dynamic_keymap: don't compile security checks when VIAL_INSECURE is set
This commit is contained in:
parent
26720f3ef8
commit
a02267f136
@ -209,6 +209,7 @@ void dynamic_keymap_set_buffer(uint16_t offset, uint16_t size, uint8_t *data) {
|
|||||||
if (offset >= dynamic_keymap_eeprom_size || dynamic_keymap_eeprom_size - offset < size)
|
if (offset >= dynamic_keymap_eeprom_size || dynamic_keymap_eeprom_size - offset < size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifndef VIAL_INSECURE
|
||||||
/* Check whether it is trying to send a RESET keycode; only allow setting these if unlocked */
|
/* Check whether it is trying to send a RESET keycode; only allow setting these if unlocked */
|
||||||
if (!vial_unlocked) {
|
if (!vial_unlocked) {
|
||||||
/* how much of the input array we'll have to check in the loop */
|
/* how much of the input array we'll have to check in the loop */
|
||||||
@ -244,6 +245,7 @@ void dynamic_keymap_set_buffer(uint16_t offset, uint16_t size, uint8_t *data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (uint16_t i = 0; i < size; i++) {
|
for (uint16_t i = 0; i < size; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user