Skip to content

Commit

Permalink
corrected a few missing screenmutexes
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitSith2 committed Feb 1, 2010
1 parent aab7d8e commit 020f7d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion firmware/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,15 @@ void set_region(void) {
uint8_t mode = SET_REGION;

display_menu();

screenmutex++;
glcdSetAddress(0, 6);
glcdPutStr("Press MENU to exit ", NORMAL);

// put a small arrow next to 'set 12h/24h'
drawArrow(0, 35, MENU_INDENT -1);
screenmutex--;

timeoutcounter = INACTIVITYTIMEOUT;

while (1) {
Expand Down Expand Up @@ -374,9 +378,10 @@ void set_alarm(void) {
uint8_t mode = SET_ALARM;

display_menu();

screenmutex++;
// put a small arrow next to 'set alarm'
drawArrow(0, 11, MENU_INDENT -1);
screenmutex--;
timeoutcounter = INACTIVITYTIMEOUT;

while (1) {
Expand Down Expand Up @@ -472,8 +477,10 @@ void set_time(void) {

display_menu();

screenmutex++;
// put a small arrow next to 'set time'
drawArrow(0, 19, MENU_INDENT -1);
screenmutex--;

timeoutcounter = INACTIVITYTIMEOUT;

Expand Down

0 comments on commit 020f7d2

Please sign in to comment.