From 43ab8dc4139635722fb199fafaadcf02138fd93c Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 6 Mar 2025 13:10:32 -0500 Subject: [PATCH] [Fix Red] Fix remaining red from, Import battery tables Change-Id: I0b41a90089843adfe49da453d76c0c3ef0c78057 --- bootloader/ipod-s5l87xx.c | 1 + firmware/export/powermgmt.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bootloader/ipod-s5l87xx.c b/bootloader/ipod-s5l87xx.c index c74ffe1733..ea902194c2 100644 --- a/bootloader/ipod-s5l87xx.c +++ b/bootloader/ipod-s5l87xx.c @@ -182,6 +182,7 @@ void fatal_error(int err) } #if (CONFIG_STORAGE & STORAGE_ATA) +extern unsigned short battery_level_disksafe[BATTERY_TYPES_COUNT]; static void battery_trap(void) { int vbat, old_verb; diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 7a5c94b0c0..0b4960744b 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h @@ -113,9 +113,9 @@ struct battery_tables_t { unsigned short * const discharge; #if CONFIG_CHARGING unsigned short * const charge; +#endif const unsigned short elems; bool isdefault; -#endif }; /* Returns battery status, filtered for runtime estimation */