summaryrefslogtreecommitdiff
path: root/apps/plugins/vu_meter.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/vu_meter.c')
-rw-r--r--apps/plugins/vu_meter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c
index 8877d7f460..5266214723 100644
--- a/apps/plugins/vu_meter.c
+++ b/apps/plugins/vu_meter.c
@@ -781,7 +781,9 @@ void digital_meter(void) {
enum plugin_status plugin_start(const void* parameter) {
int button;
+#if defined(VUMETER_HELP_PRE) || defined(VUMETER_MENU_PRE)
int lastbutton = BUTTON_NONE;
+#endif
(void) parameter;
@@ -859,7 +861,9 @@ enum plugin_status plugin_start(const void* parameter) {
return PLUGIN_USB_CONNECTED;
break;
}
+#if defined(VUMETER_HELP_PRE) || defined(VUMETER_MENU_PRE)
if (button != BUTTON_NONE)
lastbutton = button;
+#endif
}
}