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

Miscellany
Sunday, August 19th, 2007 at 10:31:05am UTC 

  1. ***************
  2. *** 723,729 ****
  3.       (CONFIG_BATTERY!=BATT_1AA)
  4.               if (!shutdown_timeout &&
  5.                   (battery_centivolts < battery_level_shutoff[battery_type]))
  6. -                 sys_poweroff();
  7.               else
  8.   #endif
  9.                   avgbat += battery_centivolts * 10000
  10. --- 723,729 ----
  11.       (CONFIG_BATTERY!=BATT_1AA)
  12.               if (!shutdown_timeout &&
  13.                   (battery_centivolts < battery_level_shutoff[battery_type]))
  14. +                 sys_poweroff(false);
  15.               else
  16.   #endif
  17.                   avgbat += battery_centivolts * 10000
  18. ***************
  19. *** 1127,1133 ****
  20.           shutdown_timeout += HZ*20;
  21.       }
  22.  
  23. -     queue_post(&button_queue, SYS_POWEROFF, 0);
  24.   }
  25.  
  26.   void cancel_shutdown(void)
  27. --- 1127,1136 ----
  28.           shutdown_timeout += HZ*20;
  29.       }
  30.  
  31. +     if (reboot)
  32. +         queue_post(&button_queue, SYS_REBOOT, 0);
  33. +     else
  34. +         queue_post(&button_queue, SYS_POWEROFF, 0);
  35.   }
  36.  
  37.   void cancel_shutdown(void)

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