diff --git a/code/espurna/thermostat.cpp b/code/espurna/thermostat.cpp index 28d3141886..803e665f24 100644 --- a/code/espurna/thermostat.cpp +++ b/code/espurna/thermostat.cpp @@ -426,7 +426,7 @@ String _getLocalUnit(unsigned char type) { for (unsigned char index = 0; index < magnitudeCount(); ++index) { const auto info = magnitudeInfo(index); if (info.type == type) { - return magnitudeUnitName(info.units); + return magnitudeUnitsName(info.units); } } #endif