Fixed format string

This commit is contained in:
CommanderRedYT
2022-06-09 04:14:50 +02:00
parent 91f2f621fe
commit c16a126a2f

View File

@ -447,7 +447,7 @@ void send_information()
// battery // battery
if (const auto avgVoltage = controllers.getAvgVoltage(); avgVoltage) if (const auto avgVoltage = controllers.getAvgVoltage(); avgVoltage)
{ {
infoObject["percentage"] = fmt::format("{:.1f}%", getBatteryPercentage(*avgVoltage, BatteryCellType(configs.battery.cellType.value()))); infoObject["percentage"] = fmt::format("{:.1f}", getBatteryPercentage(*avgVoltage, BatteryCellType(configs.battery.cellType.value())));
infoObject["voltage"] = *avgVoltage; infoObject["voltage"] = *avgVoltage;
} }
else else