Guest User

Untitled

a guest
Dec 6th, 2014
183
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c
  2. index ec91206..97ffc02 100644
  3. --- a/apps/plugins/test_boost.c
  4. +++ b/apps/plugins/test_boost.c
  5. @@ -32,6 +32,7 @@ enum plugin_status plugin_start(const void* parameter)
  6.      int last_count = 0;
  7.      int last_tick = *rb->current_tick;
  8.      int per_sec = 0;
  9. +    bool previous=true, stress=false;
  10.  
  11.      rb->lcd_setfont(FONT_SYSFIXED);
  12.  
  13. @@ -52,9 +53,18 @@ enum plugin_status plugin_start(const void* parameter)
  14.          rb->screens[0]->update();
  15.          count++;
  16.  
  17. +        if(stress && count %5 ==2)
  18. +        {
  19. +            previous = !previous;
  20. +            rb->cpu_boost(previous);
  21. +        }
  22. +
  23.          switch (rb->get_action(CONTEXT_STD, TIMEOUT_NOBLOCK))
  24.          {
  25.  #ifdef HAVE_ADJUSTABLE_CPU_FREQ
  26. +            case ACTION_STD_OK:
  27. +                stress=!stress;
  28. +                break;
  29.              case ACTION_STD_PREV:
  30.                  if (!boost)
  31.                  {
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×