mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Allow H300 to be started up from a non-LCD remote
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12668 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5eb2967428
commit
88f249d807
1 changed files with 9 additions and 10 deletions
|
@ -195,12 +195,6 @@ void main(void)
|
||||||
adc_init();
|
adc_init();
|
||||||
button_init();
|
button_init();
|
||||||
|
|
||||||
if ((on_button && button_hold()) ||
|
|
||||||
(rc_on_button && remote_button_hold()))
|
|
||||||
{
|
|
||||||
hold_status = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
backlight_init();
|
backlight_init();
|
||||||
|
|
||||||
lcd_init();
|
lcd_init();
|
||||||
|
@ -218,9 +212,17 @@ void main(void)
|
||||||
|
|
||||||
check_battery();
|
check_battery();
|
||||||
|
|
||||||
|
if(rtc_alarm)
|
||||||
|
printf("RTC alarm detected");
|
||||||
|
|
||||||
/* Don't start if the Hold button is active on the device you
|
/* Don't start if the Hold button is active on the device you
|
||||||
are starting with */
|
are starting with */
|
||||||
if (!usb_detect() && !charger_inserted() && hold_status)
|
if ((on_button && button_hold()) ||
|
||||||
|
(rc_on_button && remote_button_hold()))
|
||||||
|
{
|
||||||
|
hold_status = true;
|
||||||
|
}
|
||||||
|
if (hold_status && !rtc_alarm && !usb_detect() && !charger_inserted())
|
||||||
{
|
{
|
||||||
if (detect_original_firmware())
|
if (detect_original_firmware())
|
||||||
{
|
{
|
||||||
|
@ -229,9 +231,6 @@ void main(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rtc_alarm)
|
|
||||||
printf("RTC alarm detected");
|
|
||||||
|
|
||||||
/* Holding REC while starting runs the original firmware */
|
/* Holding REC while starting runs the original firmware */
|
||||||
if (detect_original_firmware() && rec_button)
|
if (detect_original_firmware() && rec_button)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue