Skip to content

Commit ea38d5b

Browse files
committed
battery-monitor: use pct in place of lvl
- Update battery-monitor to v1.1.0 - Update instances of lvl to pct to better reflect what is being reported Signed-off-by: Mike Szczys <[email protected]>
1 parent d6584a3 commit ea38d5b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/app_sensors.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void app_sensors_read_and_stream(void)
5252
get_batt_v_str(),
5353
strlen(get_batt_v_str()));
5454
ostentus_slide_set(o_dev,
55-
BATTERY_LVL,
56-
get_batt_lvl_str(),
57-
strlen(get_batt_lvl_str()));
55+
BATTERY_PCT,
56+
get_batt_pct_str(),
57+
strlen(get_batt_pct_str()));
5858
));
5959
));
6060

src/app_sensors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef enum {
4040
DN_COUNTER,
4141
#ifdef CONFIG_ALUDEL_BATTERY_MONITOR
4242
BATTERY_V,
43-
BATTERY_LVL,
43+
BATTERY_PCT,
4444
#endif
4545
FIRMWARE
4646
} slide_key;

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ int main(void)
257257
LABEL_BATTERY,
258258
strlen(LABEL_BATTERY));
259259
ostentus_slide_add(o_dev,
260-
BATTERY_LVL,
260+
BATTERY_PCT,
261261
LABEL_BATTERY,
262262
strlen(LABEL_BATTERY));
263263
));

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ manifest:
4949

5050
- name: golioth-battery-monitor
5151
path: deps/modules/lib/battery-monitor
52-
revision: v1.0.0
52+
revision: v1.1.0
5353
url: https://github.com/golioth/battery-monitor
5454

5555
self:

0 commit comments

Comments
 (0)