summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/debug_menu.c43
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c1
2 files changed, 0 insertions, 44 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index cbec60ee62..17a5ddb888 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2244,46 +2244,6 @@ static bool dbg_set_memory_guard(void)
}
#endif /* CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) */
-#if defined(TOSHIBA_GIGABEAT_F) && !defined(SIMULATOR)
-
-extern volatile bool lcd_poweroff;
-
-static bool dbg_lcd_power_off(void)
-{
- lcd_setmargins(0, 0);
-
- while(1)
- {
- int button;
-
- lcd_clear_display();
- lcd_puts(0, 0, "LCD Power Off");
- if(lcd_poweroff)
- lcd_puts(1, 1, "Yes");
- else
- lcd_puts(1, 1, "No");
-
- lcd_update();
-
- button = get_action(CONTEXT_STD,HZ/5);
- switch(button)
- {
- case ACTION_STD_PREV:
- case ACTION_STD_NEXT:
- lcd_poweroff = !lcd_poweroff;
- break;
- case ACTION_STD_OK:
- case ACTION_STD_CANCEL:
- return false;
- default:
- sleep(HZ/10);
- break;
- }
- }
- return false;
-}
-#endif
-
#if defined(HAVE_EEPROM) && !defined(HAVE_EEPROM_SETTINGS)
static bool dbg_write_eeprom(void)
{
@@ -2498,9 +2458,6 @@ struct the_menu_item {
bool (*function) (void); /* return true if USB was connected */
};
static const struct the_menu_item menuitems[] = {
-#if defined(TOSHIBA_GIGABEAT_F) && !defined(SIMULATOR)
- { "LCD Power Off", dbg_lcd_power_off },
-#endif
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \
(defined(CPU_PP) && !(defined(SANSA_E200) || defined(SANSA_C200)))
{ "Dump ROM contents", dbg_save_roms },
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c
index 5c666b43f1..37ac903418 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c
@@ -27,7 +27,6 @@
#define LCDADDR(x, y) (&lcd_framebuffer[(y)][(x)])
static volatile bool lcd_on = true;
-volatile bool lcd_poweroff = false;
static unsigned lcd_yuv_options = 0;
/*
** This is imported from lcd-16bit.c