diff --git a/firmware/main.c b/firmware/main.c index 0e7d6ad..b782101 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -1903,6 +1903,13 @@ void main(void) } #endif + // do nothing if scanning is blocked + if (cfg & REG_SYS_CONFIG_SCAN_BLOCK) { + if (scan_active) + keyscan_idle(); + continue; + } + // if active scanning is not active and port 6 change was // detected, and some key is still pressed, enter active // scanning mode