summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h8
-rw-r--r--firmware/export/powermgmt.h4
2 files changed, 11 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index bb3f405d6a..277a1d8632 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -709,6 +709,14 @@ Lyre prototype 1 */
709#define BATTERY_CAPACITY_DEFAULT 0 709#define BATTERY_CAPACITY_DEFAULT 0
710#endif 710#endif
711 711
712#ifndef BATTERY_CAPACITY_MIN
713#define BATTERY_CAPACITY_MIN BATTERY_CAPACITY_DEFAULT
714#endif
715
716#ifndef BATTERY_CAPACITY_MAX
717#define BATTERY_CAPACITY_MAX BATTERY_CAPACITY_DEFAULT
718#endif
719
712#ifndef BATTERY_CAPACITY_INC 720#ifndef BATTERY_CAPACITY_INC
713#define BATTERY_CAPACITY_INC 0 721#define BATTERY_CAPACITY_INC 0
714#endif 722#endif
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index f45690573a..329e64d653 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -157,8 +157,10 @@ void battery_read_info(int *voltage, int *level);
157bool battery_level_safe(void); 157bool battery_level_safe(void);
158 158
159void set_poweroff_timeout(int timeout); 159void set_poweroff_timeout(int timeout);
160#if BATTERY_CAPACITY_INC > 0
160void set_battery_capacity(int capacity); /* set local battery capacity value */ 161void set_battery_capacity(int capacity); /* set local battery capacity value */
161int get_battery_capacity(void); /* get local battery capacity value */ 162#endif
163int get_battery_capacity(void); /* get local battery capacity value */
162void set_battery_type(int type); /* set local battery type */ 164void set_battery_type(int type); /* set local battery type */
163 165
164void set_sleeptimer_duration(int minutes); 166void set_sleeptimer_duration(int minutes);