integrate battery state update into full codebase
This commit is contained in:
@@ -223,7 +223,7 @@ fn get_battery_state(
|
||||
) -> Result<Option<std::string::String>, anyhow::Error> {
|
||||
let mut board = BOARD_ACCESS.lock().expect("board access");
|
||||
let battery_state = board.board_hal.get_battery_monitor().get_battery_state();
|
||||
anyhow::Ok(Some(battery_state))
|
||||
anyhow::Ok(Some(serde_json::to_string(&battery_state)?))
|
||||
}
|
||||
|
||||
fn get_log(
|
||||
|
Reference in New Issue
Block a user