fix off by one. should now work again

This commit is contained in:
Stefan Rupp 2015-01-09 03:09:48 +01:00
parent 60d4bee9a6
commit 06af784482

View File

@ -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 {