From 06af784482b821d7e7e8393c43f04d7b2c195e87 Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Fri, 9 Jan 2015 03:09:48 +0100 Subject: [PATCH] fix off by one. should now work again --- led1642gw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {