summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr
diff options
context:
space:
mode:
authorNick <nick.win999@gmail.com>2020-10-24 18:54:56 -0500
committerNick <nick.win999@gmail.com>2020-10-24 18:54:56 -0500
commit63007fb6c136b8475894a6315f12eabeea952ca4 (patch)
tree40d6230037bc14a924f3cccf400d9e58122e63cd /app/drivers/zephyr
parentadb07926b1d6760e63e19134b338f8b1ba460483 (diff)
fix: clang-format
Diffstat (limited to 'app/drivers/zephyr')
-rw-r--r--app/drivers/zephyr/battery_voltage_divider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/drivers/zephyr/battery_voltage_divider.c b/app/drivers/zephyr/battery_voltage_divider.c
index 5bac544..09a353a 100644
--- a/app/drivers/zephyr/battery_voltage_divider.c
+++ b/app/drivers/zephyr/battery_voltage_divider.c
@@ -47,7 +47,7 @@ struct bvd_data {
static uint8_t lithium_ion_mv_to_pct(int16_t bat_mv) {
// Simple linear approximation of a battery based off adafruit's discharge graph:
// https://learn.adafruit.com/li-ion-and-lipoly-batteries/voltages
-
+
if (bat_mv >= 4200) {
return 100;
} else if (bat_mv <= 3450) {