Really fix low-bat detection in the iAudio bootloader. * Improve naming of iriver and iaudio bootloader files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16649 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-03-12 23:19:44 +00:00
parent 17bc340f1f
commit 80ded2ad7c
3 changed files with 6 additions and 5 deletions

View file

@ -18,13 +18,13 @@ main-pp.c
#elif defined(ELIO_TPJ1022) #elif defined(ELIO_TPJ1022)
tpj1022.c tpj1022.c
#elif defined(IAUDIO_X5) || defined(IAUDIO_M5) || defined(IAUDIO_M3) #elif defined(IAUDIO_X5) || defined(IAUDIO_M5) || defined(IAUDIO_M3)
iaudio_x5.c iaudio_coldfire.c
#elif defined(IRIVER_H100_SERIES)
iriver_h1x0.c
#elif defined(IRIVER_H300_SERIES) #elif defined(IRIVER_H300_SERIES)
iriver_h300.c iriver_h300.c
#elif defined(MROBE_500) #elif defined(MROBE_500)
mrobe500.c mrobe500.c
#elif defined(CPU_TCC77X) || defined(CPU_TCC780X) #elif defined(CPU_TCC77X) || defined(CPU_TCC780X)
telechips.c telechips.c
#else
main.c
#endif #endif

View file

@ -113,7 +113,7 @@ void check_battery(void)
printf("Batt: %d.%02dV", batt_int, batt_frac); printf("Batt: %d.%02dV", batt_int, batt_frac);
if (battery_voltage <= 350) if (battery_voltage <= 3500)
{ {
printf("WARNING! BATTERY LOW!!"); printf("WARNING! BATTERY LOW!!");
sleep(HZ*2); sleep(HZ*2);
@ -135,6 +135,7 @@ void main(void)
(void)rec_button; (void)rec_button;
(void)hold_status; (void)hold_status;
(void)data; (void)data;
power_init(); power_init();
system_init(); system_init();
@ -157,7 +158,7 @@ void main(void)
printf("Version %s", version); printf("Version %s", version);
check_battery(); check_battery();
rc = ata_init(); rc = ata_init();
if(rc) if(rc)
{ {