Code cleanups.

This commit is contained in:
Paul van Tilburg 2011-10-30 22:33:17 +01:00
parent 892c325c84
commit 43235ddd76
2 changed files with 2 additions and 3 deletions

View File

@ -110,7 +110,7 @@ void selftest(void){
void displaytime(void){
// start by clearing the display to a known state
ledsoff();

View File

@ -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);