diff --git a/led1642gw.c b/led1642gw.c index dcaded2..1e3bda9 100644 --- a/led1642gw.c +++ b/led1642gw.c @@ -221,7 +221,7 @@ void led1642gw_flush(void) // to the CLOBAL data latch. // once more, we do the trick with write_no_command, to // shift data through all the ICs - if (channel <= NUM_LED1642GW_CHANNELS-1) { + if (channel < NUM_LED1642GW_CHANNELS-1) { write_data_latch(ledbuffer[channel+(NUM_LED1642GW_CHANNELS*ic)]); } else {