summaryrefslogtreecommitdiffstats
path: root/apps/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 7deb2def41..3ba8fe9868 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -619,7 +619,9 @@ struct user_settings
/* power settings */
int poweroff; /* idle power off timer */
+#if defined(BATTERY_CAPACITY_INC) && BATTERY_CAPACITY_INC > 0
int battery_capacity; /* in mAh */
+#endif
#if BATTERY_TYPES_COUNT > 1
int battery_type; /* for units which can take multiple types (Ondio). */