diff --git a/code/espurna/sensor.cpp b/code/espurna/sensor.cpp index e4525a74..e75d84f0 100644 --- a/code/espurna/sensor.cpp +++ b/code/espurna/sensor.cpp @@ -443,7 +443,7 @@ sensor::Energy _sensorParseEnergy(const String& value) { const char* plus { strchr(p, '+') }; if (!plus) { - return; + return result; } p = plus + 1;