diff --git a/lambda/TODO b/lambda/TODO index 712fa87..aafd689 100644 --- a/lambda/TODO +++ b/lambda/TODO @@ -1,4 +1,5 @@ * C +- Move formatTime() to display? * AVR diff --git a/lambda/alert.c b/lambda/alert.c index 87a1cb9..258487f 100644 --- a/lambda/alert.c +++ b/lambda/alert.c @@ -23,7 +23,7 @@ volatile static bool alertActive = false; volatile static bool keepActive = false; -void oscillateBeep(void) { +void makeBeeps(void) { if (beepCount == 0) { oscCount = 0; return; diff --git a/lambda/alert.h b/lambda/alert.h index cc91e73..cfeb98d 100644 --- a/lambda/alert.h +++ b/lambda/alert.h @@ -15,7 +15,11 @@ #include #include -void oscillateBeep(void); +/** + * Turns the beep on and off for as long and as many times as an alert + * wants it. + */ +void makeBeeps(void); /** * Beeps the given number of beeps with the given length and tone. diff --git a/lambda/command.c b/lambda/command.c index 4627bc3..b7d6fdc 100644 --- a/lambda/command.c +++ b/lambda/command.c @@ -108,7 +108,6 @@ } setAirgate(position); } - // else if (simulation) { // add one second per measurement to the time, // assuming one measurement was logged per second diff --git a/lambda/interrupts.c b/lambda/interrupts.c index cee57ec..6479b99 100644 --- a/lambda/interrupts.c +++ b/lambda/interrupts.c @@ -31,7 +31,7 @@ if (! isSimulation()) { ints++; } - oscillateBeep(); + makeBeeps(); if (bit_is_clear(PIN, PIN_BUTTON) && ! buttonPressed) { buttonPressed = true; cycleDisplay();