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

Mine
Wednesday, November 15th, 2006 at 8:34:30pm UTC 

  1. Index: firmware/powermgmt.c
  2. ===================================================================
  3. RCS file: /cvsroot/rockbox/firmware/powermgmt.c,v
  4. retrieving revision 1.131
  5. diff -u -r1.131 powermgmt.c
  6. --- firmware/powermgmt.c        11 Nov 2006 01:18:57 -0000      1.131
  7. +++ firmware/powermgmt.c        15 Nov 2006 20:31:50 -0000
  8. @@ -860,6 +860,9 @@
  9.               * battery_centivolts is the centivolt-scaled filtered battery value.
  10.               */
  11.              battery_centivolts = (avgbat / BATT_AVE_SAMPLES + 5000) / 10000;
  12. +           
  13. +            /* update battery status every time an update is available */
  14. +            battery_status_update();
  15.          }
  16.          else if (battery_percent < 8) {
  17.              /* If battery is low, observe voltage during disk activity.
  18. @@ -868,6 +871,10 @@
  19.               */
  20.              battery_centivolts = (battery_adc_voltage() +
  21.                                    battery_centivolts + 1) / 2;
  22. +
  23. +            /* update battery status every time an update is available */
  24. +            battery_status_update();
  25. +           
  26.  #if (CONFIG_BATTERY!=BATT_4AA_NIMH) && (CONFIG_BATTERY!=BATT_3AAA)&& \
  27.      (CONFIG_BATTERY!=BATT_1AA)
  28.              if (!shutdown_timeout &&

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
worth-right
worth-right