This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#705 - Pseudo power on button lock.
Attached to Project:
Rockbox
Opened by Casey Dill (caseydill) - Thursday, 09 January 2003, 21:33 GMT+2
Last edited by Marc Guay (Marc_Guay) - Friday, 30 January 2009, 18:18 GMT+2
Opened by Casey Dill (caseydill) - Thursday, 09 January 2003, 21:33 GMT+2
Last edited by Marc Guay (Marc_Guay) - Friday, 30 January 2009, 18:18 GMT+2
|
DetailsThe hardware does not allow for a true power on button
lockout. But would it be possible for a “pseudo” power on button lockout. Here is the way I see it working. When the feature is turned on, as soon as the firmware starts (say from the on button getting accidentally bumped) , it would look for another button being pressed (say f1) or will require you to press a button within a short countdown time. Otherwise, the unit will automatically turn off. pseudo_poweron_lock() { $keylock_btn=f1 if $keylock_btn pressed then $poweron=true else for counter=3 to 1 step -1 print "Power off in $counter seconds. Press $keylock to abort" pause 1 second if $keylock_btn pressed then $poweron=true |
This task depends upon
Closed by Björn Stenberg (zagor)
Friday, 30 January 2009, 18:18 GMT+2
Reason for closing: Invalid
Additional comments about closing: Closing all feature requests.
Friday, 30 January 2009, 18:18 GMT+2
Reason for closing: Invalid
Additional comments about closing: Closing all feature requests.
exit counter
endif
next $counter
endif
if $poweron = flase then
POWEROFF
endif
}