diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/power.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 0a59c0bf89..8283b37fc8 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -230,6 +230,10 @@ | |||
230 | #define CONFIG_LED 0 | 230 | #define CONFIG_LED 0 |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | #ifndef CONFIG_CHARGING | ||
234 | #define CONFIG_CHARGING 0 | ||
235 | #endif | ||
236 | |||
233 | /* Enable the directory cache and tagcache in RAM if we have | 237 | /* Enable the directory cache and tagcache in RAM if we have |
234 | * plenty of RAM. Both features can be enabled independently. */ | 238 | * plenty of RAM. Both features can be enabled independently. */ |
235 | #if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \ | 239 | #if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \ |
diff --git a/firmware/export/power.h b/firmware/export/power.h index 911ae1dd29..9eed1929fe 100644 --- a/firmware/export/power.h +++ b/firmware/export/power.h | |||
@@ -24,7 +24,7 @@ extern bool charger_enabled; | |||
24 | void charger_enable(bool on); | 24 | void charger_enable(bool on); |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #ifdef CONFIG_CHARGING | 27 | #if CONFIG_CHARGING |
28 | bool charger_inserted(void); | 28 | bool charger_inserted(void); |
29 | #endif | 29 | #endif |
30 | 30 | ||