From 620a190baff5b105059f22ee1e767d7f3fd1de70 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Mon, 21 Jul 2025 20:52:47 +0200 Subject: [PATCH] iPod S5L87xx bootloader: Enable LCD sleep/awake test depending on target config, not on model Change-Id: I7a3d86814e5f5b1c84ef73636f2094514aaf0120 --- bootloader/ipod-s5l87xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootloader/ipod-s5l87xx.c b/bootloader/ipod-s5l87xx.c index e2d4d1fa52..fd7ac67296 100644 --- a/bootloader/ipod-s5l87xx.c +++ b/bootloader/ipod-s5l87xx.c @@ -348,7 +348,7 @@ extern int lcd_type; static uint16_t alive[] = { 500,100,0, 0 }; static uint16_t alivelcd[] = { 2000,200,0, 0 }; -#ifndef IPOD_6G +#ifdef HAVE_LCD_SLEEP static void sleep_test(void) { int sleep_tmo = 5; @@ -676,7 +676,7 @@ static void dump_bootflash(void) static void devel_menu(void) { const char *items[] = { -#ifndef IPOD_6G +#ifdef HAVE_LCD_SLEEP "LCD sleep/awake test", #endif "PMU info", @@ -694,7 +694,7 @@ static void devel_menu(void) "Power off", }; void (*handlers[])(void) = { -#ifndef IPOD_6G +#ifdef HAVE_LCD_SLEEP sleep_test, #endif pmu_info,