Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Saturday, April 19th, 2008 at 12:16:21pm UTC 

  1. Index: apps/plugins/pictureflow.c
  2. ===================================================================
  3. --- apps/plugins/pictureflow.c  (revision 17166)
  4. +++ apps/plugins/pictureflow.c  (working copy)
  5. @@ -1493,9 +1493,6 @@
  6.  void cleanup(void *parameter)
  7.  {
  8.      (void) parameter;
  9. -#ifdef HAVE_ADJUSTABLE_CPU_FREQ
  10. -    rb->cpu_boost(false);
  11. -#endif
  12.      /* Turn on backlight timeout (revert to settings) */
  13.      backlight_use_settings(rb); /* backlight control in lib/helper.c */
  14.  
  15. @@ -1947,9 +1944,6 @@
  16.      char fpstxt[10];
  17.      int button;
  18.  
  19. -#ifdef HAVE_ADJUSTABLE_CPU_FREQ
  20. -    rb->cpu_boost(true);
  21. -#endif
  22.      int frames = 0;
  23.      long last_update = *rb->current_tick;
  24.      long current_update;
  25. @@ -2097,11 +2091,17 @@
  26.  #endif
  27.      /* Turn off backlight timeout */
  28.      backlight_force_on(rb);     /* backlight control in lib/helper.c */
  29. +#ifdef HAVE_ADJUSTABLE_CPU_FREQ
  30. +    rb->cpu_boost(true);
  31. +#endif
  32.      ret = main();
  33. +#ifdef HAVE_ADJUSTABLE_CPU_FREQ
  34. +    rb->cpu_boost(false);
  35. +#endif
  36.      if ( ret == PLUGIN_OK ) {
  37.          if (!write_pfconfig()) {
  38.              rb->splash(HZ, "Error writing config.");
  39. -            return PLUGIN_ERROR;
  40. +            ret = PLUGIN_ERROR;
  41.          }
  42.      }
  43.  

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right