mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
Previously, if you used Esc + Reload + Power to reboot into recovery mode, you would be stuck in it until you manually rebooted the EC with "Reload + Power." This was because the button combo set a switch that was never un-set. To fix it, the keyboard_scan function now sets a host event, that is serviced once, and then cleared. As a result, the next time you reboot after triggering recovery mode, it should boot as before you triggered recovery mode. BUG=chrome-os-partner:10889 TEST=Boot device in normal mode. Press Esc + Reload + Power, and boot from usb. Power off the device and remove the usb media. Power on the device again, and there should be no recovery screens during the boot process. Next, repeat these same steps, but from starting in developer mode. After recovery, when you reboot, the device should return to developer mode. Change-Id: Idcb8dde6f8ba5f680f4d34e61ae0d12992281cbb Signed-off-by: Charlie Mooney <charliemooney@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28710 Reviewed-by: Randall Spangler <rspangler@chromium.org>