Skip to content

Commit

Permalink
Initialize the last rssi value with -127 instead of 0 to indicate a n…
Browse files Browse the repository at this point in the history
…on existing connection of no data was received yet
  • Loading branch information
tbnobody committed Oct 6, 2024
1 parent d3d96b5 commit 2659204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Hoymiles/src/inverters/InverterAbstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class InverterAbstract {
bool _zeroYieldDayOnMidnight = false;
bool _clearEventlogOnMidnight = false;

int8_t _lastRssi = 0;
int8_t _lastRssi = -127;

std::unique_ptr<AlarmLogParser> _alarmLogParser;
std::unique_ptr<DevInfoParser> _devInfoParser;
Expand Down

0 comments on commit 2659204

Please sign in to comment.