Searched refs:calculate_battery_percent (Results 1 – 2 of 2) sorted by relevance
126 pub fn calculate_battery_percent(at_command: AtCommand) -> Result<u32, String> { in calculate_battery_percent() function423 let battery_level = calculate_battery_percent(at_command.unwrap()); in test_calculate_battery_percent()429 let battery_level = calculate_battery_percent(at_command.unwrap()); in test_calculate_battery_percent()435 let battery_level = calculate_battery_percent(at_command.unwrap()).unwrap(); in test_calculate_battery_percent()445 let battery_level = calculate_battery_percent(at_command.unwrap()).unwrap(); in test_calculate_battery_percent()
36 use bt_utils::at_command_parser::{calculate_battery_percent, parse_at_command_data};1593 let battery_level = match calculate_battery_percent(at_command.clone()) { in dispatch_hfp_callbacks()