From 39960a20c6493e82fea9d4e96f30a2215a5b50e9 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Tue, 27 Dec 2011 11:46:16 +0100 Subject: [PATCH] Safe 6 byte of flash. --- firmware/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/main.c b/firmware/main.c index e8c7a9a..2ce7961 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -76,7 +76,7 @@ ISR (TIMER1_COMPA_vect) // Possible delays are 8 16 24 32 and so on. A zero delay isn't possible. // Zero means that a delay of 255 happens because the delay variable was decreased first before testing // it's is zero value. - delay = (frame & 0xf8000000) >> 24; + delay = (frame >> 24) & 0xf8; } // PORTD = __, 9, C, B, A,D+,D-,__