Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c
- index ec91206..97ffc02 100644
- --- a/apps/plugins/test_boost.c
- +++ b/apps/plugins/test_boost.c
- @@ -32,6 +32,7 @@ enum plugin_status plugin_start(const void* parameter)
- int last_count = 0;
- int last_tick = *rb->current_tick;
- int per_sec = 0;
- + bool previous=true, stress=false;
- rb->lcd_setfont(FONT_SYSFIXED);
- @@ -52,9 +53,18 @@ enum plugin_status plugin_start(const void* parameter)
- rb->screens[0]->update();
- count++;
- + if(stress && count %5 ==2)
- + {
- + previous = !previous;
- + rb->cpu_boost(previous);
- + }
- +
- switch (rb->get_action(CONTEXT_STD, TIMEOUT_NOBLOCK))
- {
- #ifdef HAVE_ADJUSTABLE_CPU_FREQ
- + case ACTION_STD_OK:
- + stress=!stress;
- + break;
- case ACTION_STD_PREV:
- if (!boost)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement