Skip to content

Commit

Permalink
display battery symbol if less than 10% battery left
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Dec 29, 2023
1 parent 4952d0d commit 233a17c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ void read_sensor_and_save() {
#ifdef ZCL_RELATIVE_HUMIDITY_MEASUREMENT
#ifdef ZCL_TEMPERATURE_MEASUREMENT
show_small_number(g_zcl_relHumidityAttrs.measuredValue / 100, 1);
show_battery_symbol(percentage <= 10);
#if defined(SHOW_SMILEY)
show_smiley(
is_comfort(g_zcl_temperatureAttrs.measuredValue, g_zcl_relHumidityAttrs.measuredValue) ? 1 : 2
Expand Down

0 comments on commit 233a17c

Please sign in to comment.