summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-11-12 21:40:57 +0000
committerJens Arnold <amiconn@rockbox.org>2004-11-12 21:40:57 +0000
commit0ee36f882d006e74df51926027c5f010b298d15f (patch)
tree2b1da54ed3999f9c3553de96fa7cb47a83a62776 /apps/plugins
parent4533d62c027213a1522fff2cb31791304504c3ff (diff)
Removed workaround for non-zeroed bss. Added a little optimization for pause mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5405 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/oscilloscope.c15
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 @@
/* global variables */
struct plugin_api* rb; /* global api struct pointer */
-int x;
-int draw_mode;
-bool scroll;
+int x = 0;
+int draw_mode = DRAW_MODE_FILLED;
+bool scroll = true;
int left_val;
int right_val;
-bool new_val;
+bool new_val = false;
/* prototypes */
@@ -202,11 +202,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
(void)parameter;
rb = api;
- x = 0;
- draw_mode = DRAW_MODE_FILLED;
- scroll = true;
- new_val = false;
-
rb->plugin_register_timer(FREQ / 67, 1, timer_isr);
while (!exit)
@@ -220,7 +215,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
}
rb->yield();
- button = rb->button_get(false);
+ button = rb->button_get(paused);
switch (button)
{
case OSCILLOSCOPE_QUIT: