Skip to content

Commit

Permalink
Fix: conversion from Kelvin to Centigrade (SmartBatterySense)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen committed Oct 13, 2024
1 parent 28c0c9d commit 4bdfd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/VeDirectFrameHandler/VeDirectMpptController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ bool VeDirectMpptController::hexDataHandler(VeDirectHexData const &data) {
}

_tmpFrame.SmartBatterySenseTemperatureMilliCelsius =
{ millis(), static_cast<int32_t>(data.value) * 10 - 272150 };
{ millis(), static_cast<int32_t>(data.value) * 10 - 273150 };

if (_verboseLogging) {
_msgOut->printf("%s Hex Data: Smart Battery Sense Temperature (0x%04X): %.2f°C\r\n",
Expand Down

0 comments on commit 4bdfd65

Please sign in to comment.