diff --git a/quantum/dip_switch.c b/quantum/dip_switch.c index 7fa0274c96..9d474380e0 100644 --- a/quantum/dip_switch.c +++ b/quantum/dip_switch.c @@ -99,6 +99,9 @@ void dip_switch_read(bool forced) { uint32_t dip_switch_mask = 0; #ifdef DIP_SWITCH_MATRIX_GRID +# ifndef SCAN_COUNT_MAX +# define SCAN_COUNT_MAX 500 +# endif bool read_raw = false; if (scan_count < SCAN_COUNT_MAX) {