cosmetic: battery related stuff
This commit is contained in:
@@ -219,10 +219,12 @@ static void sensor_task(void *arg)
|
||||
s_shtc3->Shtc3_ReadTempHumi(&temp, &humidity);
|
||||
s_shtc3->Shtc3_Sleep();
|
||||
|
||||
float batt_v = Adc_GetBatteryVoltage();
|
||||
uint8_t batt = Adc_GetBatteryLevel();
|
||||
bool charging = Adc_IsCharging();
|
||||
|
||||
if (Lvgl_lock(100)) {
|
||||
dashboard_ui_update_local(temp, humidity, batt);
|
||||
dashboard_ui_update_local(temp, humidity, batt, charging, batt_v);
|
||||
Lvgl_unlock();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user