summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2021-03-10 04:09:46 -0600
committerJames Buren <braewoods+rb@braewoods.net>2021-03-10 04:09:46 -0600
commit0ba174789b45cd36fed61403898bbe5c2a01dcfb (patch)
tree63914375916ce9b9f8330d5f4aac4954d574a8d4 /firmware/export/powermgmt.h
parent777f63d5292df98253bbb00db9362ddbe55b778e (diff)
downloadrockbox-0ba174789b45cd36fed61403898bbe5c2a01dcfb.tar.gz
rockbox-0ba174789b45cd36fed61403898bbe5c2a01dcfb.zip
usb_hid: switch Battery Strength to use feature reports
This means we will no longer send them routinely and instead rely on the HID driver to send them when the host requests it. This also moves the reporting out of the power management code where it probably did not belong in the first place. Change-Id: I9c8420e81897f1f6caaa55ffacc7525589f1ef75
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index b7ca6772f3..235f5302f9 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -166,9 +166,6 @@ void set_poweroff_timeout(int timeout);
166void set_battery_capacity(int capacity); /* set local battery capacity value */ 166void set_battery_capacity(int capacity); /* set local battery capacity value */
167int get_battery_capacity(void); /* get local battery capacity value */ 167int get_battery_capacity(void); /* get local battery capacity value */
168void set_battery_type(int type); /* set local battery type */ 168void set_battery_type(int type); /* set local battery type */
169#ifdef USB_ENABLE_HID
170void set_battery_reporting(bool enable);
171#endif
172 169
173void set_sleeptimer_duration(int minutes); 170void set_sleeptimer_duration(int minutes);
174int get_sleep_timer(void); 171int get_sleep_timer(void);