diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/clock.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c index 3dae622c60..1f91fc6100 100644 --- a/apps/plugins/clock.c +++ b/apps/plugins/clock.c | |||
@@ -489,6 +489,8 @@ void reset_settings(void) | |||
489 | *********************************/ | 489 | *********************************/ |
490 | void save_settings(void) | 490 | void save_settings(void) |
491 | { | 491 | { |
492 | int fd; | ||
493 | |||
492 | rb->lcd_clear_display(); | 494 | rb->lcd_clear_display(); |
493 | 495 | ||
494 | show_logo(true, true); | 496 | show_logo(true, true); |
@@ -496,7 +498,6 @@ void save_settings(void) | |||
496 | 498 | ||
497 | rb->lcd_update(); | 499 | rb->lcd_update(); |
498 | 500 | ||
499 | int fd; | ||
500 | fd = rb->creat(default_filename, O_WRONLY); | 501 | fd = rb->creat(default_filename, O_WRONLY); |
501 | 502 | ||
502 | if(fd >= 0) | 503 | if(fd >= 0) |
@@ -1403,13 +1404,13 @@ void f2_screen(void) | |||
1403 | **********************/ | 1404 | **********************/ |
1404 | bool f3_screen(void) | 1405 | bool f3_screen(void) |
1405 | { | 1406 | { |
1406 | done = false; | ||
1407 | |||
1408 | int invert_analog = 1; | 1407 | int invert_analog = 1; |
1409 | int invert_digital = 1; | 1408 | int invert_digital = 1; |
1410 | int invert_lcd = 1; | 1409 | int invert_lcd = 1; |
1411 | int invert_fullscreen = 1; | 1410 | int invert_fullscreen = 1; |
1412 | 1411 | ||
1412 | done = false; | ||
1413 | |||
1413 | while (!done) | 1414 | while (!done) |
1414 | { | 1415 | { |
1415 | rb->lcd_clear_display(); | 1416 | rb->lcd_clear_display(); |
@@ -1958,8 +1959,6 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second) | |||
1958 | ****************/ | 1959 | ****************/ |
1959 | void select_mode(void) | 1960 | void select_mode(void) |
1960 | { | 1961 | { |
1961 | done = false; | ||
1962 | |||
1963 | int cursorpos = settings.clock; | 1962 | int cursorpos = settings.clock; |
1964 | bool a = false; /* (a)nalog */ | 1963 | bool a = false; /* (a)nalog */ |
1965 | bool d = false; /* (d)igital */ | 1964 | bool d = false; /* (d)igital */ |
@@ -1967,6 +1966,8 @@ void select_mode(void) | |||
1967 | bool f = false; /* (f)ullscreen */ | 1966 | bool f = false; /* (f)ullscreen */ |
1968 | bool b = false; /* (b)inary */ | 1967 | bool b = false; /* (b)inary */ |
1969 | 1968 | ||
1969 | done = false; | ||
1970 | |||
1970 | while(!done) | 1971 | while(!done) |
1971 | { | 1972 | { |
1972 | rb->lcd_clear_display(); | 1973 | rb->lcd_clear_display(); |