This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10796 - Clip - prevent power switch activation when coming out of hold
Attached to Project:
Rockbox
Opened by Michael Chicoine (mc2739) - Friday, 20 November 2009, 13:34 GMT+2
Last edited by Michael Chicoine (mc2739) - Saturday, 21 November 2009, 22:17 GMT+2
Opened by Michael Chicoine (mc2739) - Friday, 20 November 2009, 13:34 GMT+2
Last edited by Michael Chicoine (mc2739) - Saturday, 21 November 2009, 22:17 GMT+2
|
DetailsThis patch prevents power switch activation when coming out of hold by not allowing the power GPIO to be read until 1 second has passed since the hold switch has been released.
|
This task depends upon
Closed by Michael Chicoine (mc2739)
Saturday, 21 November 2009, 22:17 GMT+2
Reason for closing: Accepted
Additional comments about closing: commited in r23686
Saturday, 21 November 2009, 22:17 GMT+2
Reason for closing: Accepted
Additional comments about closing: commited in r23686
Looks good, except that you seem to cause big breakage :) You need { } around the if (button_hold()), otherwise it will always return 0.
Thanks, here is the updated patch.
ok