diff options
-rw-r--r-- | apps/plugins/oscilloscope.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index b37f473491..cfb8330134 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c | |||
@@ -58,12 +58,12 @@ | |||
58 | /* global variables */ | 58 | /* global variables */ |
59 | 59 | ||
60 | struct plugin_api* rb; /* global api struct pointer */ | 60 | struct plugin_api* rb; /* global api struct pointer */ |
61 | int x; | 61 | int x = 0; |
62 | int draw_mode; | 62 | int draw_mode = DRAW_MODE_FILLED; |
63 | bool scroll; | 63 | bool scroll = true; |
64 | int left_val; | 64 | int left_val; |
65 | int right_val; | 65 | int right_val; |
66 | bool new_val; | 66 | bool new_val = false; |
67 | 67 | ||
68 | /* prototypes */ | 68 | /* prototypes */ |
69 | 69 | ||
@@ -202,11 +202,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
202 | (void)parameter; | 202 | (void)parameter; |
203 | rb = api; | 203 | rb = api; |
204 | 204 | ||
205 | x = 0; | ||
206 | draw_mode = DRAW_MODE_FILLED; | ||
207 | scroll = true; | ||
208 | new_val = false; | ||
209 | |||
210 | rb->plugin_register_timer(FREQ / 67, 1, timer_isr); | 205 | rb->plugin_register_timer(FREQ / 67, 1, timer_isr); |
211 | 206 | ||
212 | while (!exit) | 207 | while (!exit) |
@@ -220,7 +215,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
220 | } | 215 | } |
221 | rb->yield(); | 216 | rb->yield(); |
222 | 217 | ||
223 | button = rb->button_get(false); | 218 | button = rb->button_get(paused); |
224 | switch (button) | 219 | switch (button) |
225 | { | 220 | { |
226 | case OSCILLOSCOPE_QUIT: | 221 | case OSCILLOSCOPE_QUIT: |