diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-06 22:55:00 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-06 22:55:00 +0000 |
commit | f9b90e91031dbd23fed24e832de4d8d2e15151a0 (patch) | |
tree | 964a492f1c4a658ec0ecb82d100ce62d2f6ec93a /apps/debug_menu.c | |
parent | a5d7309d96cca974e1524dc746482ab2a26d7395 (diff) | |
download | rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.tar.gz rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.zip |
Now charcell displays require lcd_update() for updating the main lcd content like bitmap displays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index dff84d1eda..be77699d7e 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1057,7 +1057,7 @@ bool dbg_ports(void) | |||
1057 | lcd_puts(0, line++, buf); | 1057 | lcd_puts(0, line++, buf); |
1058 | 1058 | ||
1059 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) | 1059 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
1060 | snprintf(buf, sizeof(buf), "remotetype:: %d", remote_type()); | 1060 | snprintf(buf, sizeof(buf), "remotetype: %d", remote_type()); |
1061 | lcd_puts(0, line++, buf); | 1061 | lcd_puts(0, line++, buf); |
1062 | #endif | 1062 | #endif |
1063 | 1063 | ||
@@ -1248,6 +1248,7 @@ bool dbg_ports(void) | |||
1248 | snprintf(buf, 32, "Batt: %d.%02dV", adc_battery_voltage / 100, | 1248 | snprintf(buf, 32, "Batt: %d.%02dV", adc_battery_voltage / 100, |
1249 | adc_battery_voltage % 100); | 1249 | adc_battery_voltage % 100); |
1250 | lcd_puts(0, 1, buf); | 1250 | lcd_puts(0, 1, buf); |
1251 | lcd_update(); | ||
1251 | 1252 | ||
1252 | button = get_action(CONTEXT_SETTINGS,HZ/5); | 1253 | button = get_action(CONTEXT_SETTINGS,HZ/5); |
1253 | 1254 | ||
@@ -1350,6 +1351,7 @@ static bool view_battery(void) | |||
1350 | 1351 | ||
1351 | while(1) | 1352 | while(1) |
1352 | { | 1353 | { |
1354 | lcd_clear_display(); | ||
1353 | switch (view) { | 1355 | switch (view) { |
1354 | case 0: /* voltage history graph */ | 1356 | case 0: /* voltage history graph */ |
1355 | /* Find maximum and minimum voltage for scaling */ | 1357 | /* Find maximum and minimum voltage for scaling */ |
@@ -1371,7 +1373,6 @@ static bool view_battery(void) | |||
1371 | if (minv == maxv) | 1373 | if (minv == maxv) |
1372 | maxv < 65535 ? maxv++ : minv--; | 1374 | maxv < 65535 ? maxv++ : minv--; |
1373 | 1375 | ||
1374 | lcd_clear_display(); | ||
1375 | snprintf(buf, 30, "Battery %d.%02d", power_history[0] / 100, | 1376 | snprintf(buf, 30, "Battery %d.%02d", power_history[0] / 100, |
1376 | power_history[0] % 100); | 1377 | power_history[0] % 100); |
1377 | lcd_puts(0, 0, buf); | 1378 | lcd_puts(0, 0, buf); |
@@ -1393,7 +1394,6 @@ static bool view_battery(void) | |||
1393 | break; | 1394 | break; |
1394 | 1395 | ||
1395 | case 1: /* status: */ | 1396 | case 1: /* status: */ |
1396 | lcd_clear_display(); | ||
1397 | lcd_puts(0, 0, "Power status:"); | 1397 | lcd_puts(0, 0, "Power status:"); |
1398 | 1398 | ||
1399 | battery_read_info(NULL, &y, NULL); | 1399 | battery_read_info(NULL, &y, NULL); |
@@ -1456,7 +1456,6 @@ static bool view_battery(void) | |||
1456 | break; | 1456 | break; |
1457 | 1457 | ||
1458 | case 2: /* voltage deltas: */ | 1458 | case 2: /* voltage deltas: */ |
1459 | lcd_clear_display(); | ||
1460 | lcd_puts(0, 0, "Voltage deltas:"); | 1459 | lcd_puts(0, 0, "Voltage deltas:"); |
1461 | 1460 | ||
1462 | for (i = 0; i <= 6; i++) { | 1461 | for (i = 0; i <= 6; i++) { |
@@ -1469,7 +1468,6 @@ static bool view_battery(void) | |||
1469 | break; | 1468 | break; |
1470 | 1469 | ||
1471 | case 3: /* remaining time estimation: */ | 1470 | case 3: /* remaining time estimation: */ |
1472 | lcd_clear_display(); | ||
1473 | 1471 | ||
1474 | #if CONFIG_CHARGING == CHARGING_CONTROL | 1472 | #if CONFIG_CHARGING == CHARGING_CONTROL |
1475 | snprintf(buf, 30, "charge_state: %d", charge_state); | 1473 | snprintf(buf, 30, "charge_state: %d", charge_state); |
@@ -1657,9 +1655,7 @@ static bool dbg_disk_info(void) | |||
1657 | bool timing_info_present = false; | 1655 | bool timing_info_present = false; |
1658 | char pio3[2], pio4[2]; | 1656 | char pio3[2], pio4[2]; |
1659 | 1657 | ||
1660 | #ifdef HAVE_LCD_BITMAP | ||
1661 | lcd_setmargins(0, 0); | 1658 | lcd_setmargins(0, 0); |
1662 | #endif | ||
1663 | 1659 | ||
1664 | while(!done) | 1660 | while(!done) |
1665 | { | 1661 | { |
@@ -1999,9 +1995,7 @@ static bool dbg_fm_radio(void) | |||
1999 | char buf[32]; | 1995 | char buf[32]; |
2000 | bool fm_detected; | 1996 | bool fm_detected; |
2001 | 1997 | ||
2002 | #ifdef HAVE_LCD_BITMAP | ||
2003 | lcd_setmargins(0, 0); | 1998 | lcd_setmargins(0, 0); |
2004 | #endif | ||
2005 | 1999 | ||
2006 | while(1) | 2000 | while(1) |
2007 | { | 2001 | { |