Postfix for bootbox: charging screen reacts on ON press not release as well.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7105 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-07-11 19:16:14 +00:00
parent 7c7dd43ccf
commit 8831a0a1c6

View file

@ -82,7 +82,7 @@ int charging_screen(void)
do do
{ {
button = button_get_w_tmo(HZ/2); button = button_get_w_tmo(HZ/2);
if (button == (BUTTON_ON | BUTTON_REL)) if (button == BUTTON_ON)
rc = 2; rc = 2;
else if (usb_detect()) else if (usb_detect())
rc = 3; rc = 3;