mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 09:48:35 -07:00
[FL-904] Power info UI (#382)
* New power screen UI * API HAL Power: add VBUS voltage to API Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -163,6 +163,10 @@ float api_hal_power_get_battery_temperature(ApiHalPowerIC ic) {
|
||||
|
||||
}
|
||||
|
||||
float api_hal_power_get_usb_voltage(){
|
||||
return (float)bq25896_get_vbus_voltage() / 1000.0f;;
|
||||
}
|
||||
|
||||
void api_hal_power_dump_state(string_t buffer) {
|
||||
BatteryStatus battery_status;
|
||||
OperationStatus operation_status;
|
||||
|
||||
Reference in New Issue
Block a user