From a02267f136a50b9ef7a117539360eba92b83c97a Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Mon, 8 Feb 2021 18:05:30 -0500 Subject: [PATCH] dynamic_keymap: don't compile security checks when VIAL_INSECURE is set --- quantum/dynamic_keymap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quantum/dynamic_keymap.c b/quantum/dynamic_keymap.c index ea38244eaa..504c3bc1de 100644 --- a/quantum/dynamic_keymap.c +++ b/quantum/dynamic_keymap.c @@ -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) return; +#ifndef VIAL_INSECURE /* Check whether it is trying to send a RESET keycode; only allow setting these if unlocked */ if (!vial_unlocked) { /* 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 for (uint16_t i = 0; i < size; i++) {