summaryrefslogtreecommitdiff
path: root/apps/plugins/oscilloscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/oscilloscope.c')
-rw-r--r--apps/plugins/oscilloscope.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c
index c55948dce9..07bf1da8bb 100644
--- a/apps/plugins/oscilloscope.c
+++ b/apps/plugins/oscilloscope.c
@@ -786,7 +786,9 @@ void cleanup(void)
786enum plugin_status plugin_start(const void* parameter) 786enum plugin_status plugin_start(const void* parameter)
787{ 787{
788 int button, vol; 788 int button, vol;
789#if defined(OSCILLOSCOPE_DRAWMODE_PRE) || defined(OSCILLOSCOPE_ORIENTATION_PRE)
789 int lastbutton = BUTTON_NONE; 790 int lastbutton = BUTTON_NONE;
791#endif
790 bool exit = false; 792 bool exit = false;
791 bool paused = false; 793 bool paused = false;
792 bool tell_speed; 794 bool tell_speed;
@@ -917,9 +919,11 @@ enum plugin_status plugin_start(const void* parameter)
917 exit_on_usb(button); 919 exit_on_usb(button);
918 break; 920 break;
919 } 921 }
922#if defined(OSCILLOSCOPE_DRAWMODE_PRE) || defined(OSCILLOSCOPE_ORIENTATION_PRE)
920 if (button != BUTTON_NONE) 923 if (button != BUTTON_NONE)
921 lastbutton = button; 924 lastbutton = button;
922 925#endif
926
923 if (tell_speed) 927 if (tell_speed)
924 { 928 {
925 rb->snprintf(message, sizeof(message), "%s%d", 929 rb->snprintf(message, sizeof(message), "%s%d",