diff options
Diffstat (limited to 'apps/status.c')
-rw-r--r-- | apps/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/status.c b/apps/status.c index d7d3a21f5b..8d3d1748cb 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -60,7 +60,7 @@ struct status_info { | |||
60 | bool keylock; | 60 | bool keylock; |
61 | bool battery_safe; | 61 | bool battery_safe; |
62 | bool redraw_volume; /* true if the volume gauge needs updating */ | 62 | bool redraw_volume; /* true if the volume gauge needs updating */ |
63 | #ifndef HAVE_LED | 63 | #if CONFIG_LED == LED_VIRTUAL |
64 | bool led; /* disk LED simulation in the status bar */ | 64 | bool led; /* disk LED simulation in the status bar */ |
65 | #endif | 65 | #endif |
66 | }; | 66 | }; |
@@ -167,7 +167,7 @@ void status_draw(bool force_redraw) | |||
167 | #endif | 167 | #endif |
168 | info.repeat = global_settings.repeat_mode; | 168 | info.repeat = global_settings.repeat_mode; |
169 | info.playmode = current_playmode(); | 169 | info.playmode = current_playmode(); |
170 | #ifndef HAVE_LED | 170 | #if CONFIG_LED == LED_VIRTUAL |
171 | info.led = led_read(HZ/2); /* delay should match polling interval */ | 171 | info.led = led_read(HZ/2); /* delay should match polling interval */ |
172 | #endif | 172 | #endif |
173 | 173 | ||
@@ -248,7 +248,7 @@ void status_draw(bool force_redraw) | |||
248 | #ifdef HAVE_RTC | 248 | #ifdef HAVE_RTC |
249 | statusbar_time(info.hour, info.minute); | 249 | statusbar_time(info.hour, info.minute); |
250 | #endif | 250 | #endif |
251 | #ifndef HAVE_LED | 251 | #if CONFIG_LED == LED_VIRTUAL |
252 | if (info.led) | 252 | if (info.led) |
253 | statusbar_led(); | 253 | statusbar_led(); |
254 | #endif | 254 | #endif |