From 2659204d964878609dcf73c65190cf050a037d88 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sun, 6 Oct 2024 11:08:10 +0200 Subject: [PATCH] Initialize the last rssi value with -127 instead of 0 to indicate a non existing connection of no data was received yet --- lib/Hoymiles/src/inverters/InverterAbstract.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Hoymiles/src/inverters/InverterAbstract.h b/lib/Hoymiles/src/inverters/InverterAbstract.h index 2f49f91..29fba12 100644 --- a/lib/Hoymiles/src/inverters/InverterAbstract.h +++ b/lib/Hoymiles/src/inverters/InverterAbstract.h @@ -133,7 +133,7 @@ private: bool _zeroYieldDayOnMidnight = false; bool _clearEventlogOnMidnight = false; - int8_t _lastRssi = 0; + int8_t _lastRssi = -127; std::unique_ptr _alarmLogParser; std::unique_ptr _devInfoParser;