From 43235ddd764ac3d9e4d12e1cc1afca4aefcd1c63 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 30 Oct 2011 22:33:17 +0100 Subject: [PATCH] Code cleanups. --- wordclock/Dutch.h | 2 +- wordclock/wordclock.pde | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wordclock/Dutch.h b/wordclock/Dutch.h index 88a054e..4166325 100644 --- a/wordclock/Dutch.h +++ b/wordclock/Dutch.h @@ -110,7 +110,7 @@ void selftest(void){ void displaytime(void){ - + // start by clearing the display to a known state ledsoff(); diff --git a/wordclock/wordclock.pde b/wordclock/wordclock.pde index 646ee52..be5881b 100644 --- a/wordclock/wordclock.pde +++ b/wordclock/wordclock.pde @@ -89,7 +89,7 @@ int count; int selftestmode; // 1 = in self test - flash display int DS1302Present=0; // flag to indicate that the 1302 is there.. 1 = present char Display1=0, Display2=0, Display3=0, Led1=0, Led2=0, Led3=0, Led4=0; -int OldHardware = 0; // 1 = we are running on old hardwrae +int OldHardware = 0; // 1 = we are running on old hardware int BTNActive = 1; // the sense of the button inputs (Changes based on hardware type) int timercount=10; // used for interrupt counting to determine the brightnes of the display @@ -268,7 +268,6 @@ void setup() ISR(TIMER2_OVF_vect) { RESET_TIMER2; - if (timercount-- <= current_brightnes){ // Now we write the actual values to the hardware shiftOut(LEDDataPin, LEDClockPin, MSBFIRST, Display3);