1
0
Fork 0
forked from len0rd/rockbox

Added another LEFT exit. Split some long lines.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1659 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-10 08:57:47 +00:00
parent 50fc3ce551
commit fe97b578eb

View file

@ -187,6 +187,7 @@ void dbg_ports(void)
break; break;
case BUTTON_OFF: case BUTTON_OFF:
case BUTTON_LEFT:
charger_enable(false); charger_enable(false);
ide_power_enable(true); ide_power_enable(true);
return; return;
@ -258,7 +259,8 @@ void dbg_ports(void)
} }
lcd_puts(0, 0, buf); lcd_puts(0, 0, buf);
battery_voltage = (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) / 10000; battery_voltage = (adc_read(ADC_UNREG_POWER) *
BATTERY_SCALE_FACTOR) / 10000;
batt_int = battery_voltage / 100; batt_int = battery_voltage / 100;
batt_frac = battery_voltage % 100; batt_frac = battery_voltage % 100;
@ -500,7 +502,8 @@ void view_battery(void)
charger_inserted() ? "present" : "absent"); charger_inserted() ? "present" : "absent");
lcd_puts(0, 3, buf); lcd_puts(0, 3, buf);
#ifdef HAVE_CHARGE_CTRL #ifdef HAVE_CHARGE_CTRL
snprintf(buf, 30, "Charging: %s", charger_enabled ? "yes" : "no"); snprintf(buf, 30, "Charging: %s",
charger_enabled ? "yes" : "no");
lcd_puts(0, 4, buf); lcd_puts(0, 4, buf);
#endif #endif
y = 0; y = 0;