Skip to content

Commit

Permalink
Fix: Previously check for HwPartNumber 124097 was implemented wrong
Browse files Browse the repository at this point in the history
Fix: #1846
  • Loading branch information
tbnobody committed Mar 21, 2024
1 parent ed32676 commit 3125f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Hoymiles/src/parser/DevInfoParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ bool DevInfoParser::containsValidData() const
struct tm info;
localtime_r(&t, &info);

return info.tm_year > (2016 - 1900) || getHwPartNumber() == 124097;
return info.tm_year > (2016 - 1900) && getHwPartNumber() != 124097;
}

uint8_t DevInfoParser::getDevIdx() const
Expand Down

0 comments on commit 3125f16

Please sign in to comment.