forked from len0rd/rockbox
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
This commit is contained in:
parent
4533d62c02
commit
0ee36f882d
1 changed files with 5 additions and 10 deletions
|
@ -58,12 +58,12 @@
|
||||||
/* global variables */
|
/* global variables */
|
||||||
|
|
||||||
struct plugin_api* rb; /* global api struct pointer */
|
struct plugin_api* rb; /* global api struct pointer */
|
||||||
int x;
|
int x = 0;
|
||||||
int draw_mode;
|
int draw_mode = DRAW_MODE_FILLED;
|
||||||
bool scroll;
|
bool scroll = true;
|
||||||
int left_val;
|
int left_val;
|
||||||
int right_val;
|
int right_val;
|
||||||
bool new_val;
|
bool new_val = false;
|
||||||
|
|
||||||
/* prototypes */
|
/* prototypes */
|
||||||
|
|
||||||
|
@ -202,11 +202,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
(void)parameter;
|
(void)parameter;
|
||||||
rb = api;
|
rb = api;
|
||||||
|
|
||||||
x = 0;
|
|
||||||
draw_mode = DRAW_MODE_FILLED;
|
|
||||||
scroll = true;
|
|
||||||
new_val = false;
|
|
||||||
|
|
||||||
rb->plugin_register_timer(FREQ / 67, 1, timer_isr);
|
rb->plugin_register_timer(FREQ / 67, 1, timer_isr);
|
||||||
|
|
||||||
while (!exit)
|
while (!exit)
|
||||||
|
@ -220,7 +215,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
}
|
}
|
||||||
rb->yield();
|
rb->yield();
|
||||||
|
|
||||||
button = rb->button_get(false);
|
button = rb->button_get(paused);
|
||||||
switch (button)
|
switch (button)
|
||||||
{
|
{
|
||||||
case OSCILLOSCOPE_QUIT:
|
case OSCILLOSCOPE_QUIT:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue