diff --git a/bootloader/SOURCES b/bootloader/SOURCES index ea83fa6277..9e961eeb29 100644 --- a/bootloader/SOURCES +++ b/bootloader/SOURCES @@ -18,13 +18,13 @@ main-pp.c #elif defined(ELIO_TPJ1022) tpj1022.c #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) iriver_h300.c #elif defined(MROBE_500) mrobe500.c #elif defined(CPU_TCC77X) || defined(CPU_TCC780X) telechips.c -#else -main.c #endif diff --git a/bootloader/iaudio_x5.c b/bootloader/iaudio_coldfire.c similarity index 99% rename from bootloader/iaudio_x5.c rename to bootloader/iaudio_coldfire.c index 3cfbb7aec7..a80a202d41 100644 --- a/bootloader/iaudio_x5.c +++ b/bootloader/iaudio_coldfire.c @@ -113,7 +113,7 @@ void check_battery(void) printf("Batt: %d.%02dV", batt_int, batt_frac); - if (battery_voltage <= 350) + if (battery_voltage <= 3500) { printf("WARNING! BATTERY LOW!!"); sleep(HZ*2); @@ -135,6 +135,7 @@ void main(void) (void)rec_button; (void)hold_status; (void)data; + power_init(); system_init(); @@ -157,7 +158,7 @@ void main(void) printf("Version %s", version); check_battery(); - + rc = ata_init(); if(rc) { diff --git a/bootloader/main.c b/bootloader/iriver_h1x0.c similarity index 100% rename from bootloader/main.c rename to bootloader/iriver_h1x0.c