File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -272,10 +272,11 @@ return_type TR1200Interface::read(
272272 battery_state.power_supply_health = BatteryState::POWER_SUPPLY_HEALTH_UNKNOWN;
273273
274274 battery_state.voltage = driver_->get_battery_voltage ();
275- battery_state.percentage = driver_->get_battery_soc ();
275+ battery_state.percentage = driver_->get_battery_soc () / 100 . 0f ;
276276 battery_state.present = true ;
277- // TODO(lukeschmitt-tr): Reenable this once current has been verified
277+ // TODO(lukeschmitt-tr): Reenable this once current, temp has been verified
278278 // battery_state.current = driver_->get_battery_current();
279+ // battery_state.temperature = driver_->get_battery_temperature();
279280
280281 if (publish_battery_state_nans_) {
281282 battery_state.charge = std::numeric_limits<float >::quiet_NaN ();
You can’t perform that action at this time.
0 commit comments