Update zeroExport.h - fix

fix needed: dont continue inverter id 0
This commit is contained in:
DanielR92 2024-03-30 22:24:42 +01:00 committed by GitHub
parent 3736bff9ab
commit 4554eea03a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -548,7 +548,7 @@ class ZeroExport {
}
// Inverter not selected -> ignore
if (mCfg->groups[group].inverters[inv].id <= 0) {
if (mCfg->groups[group].inverters[inv].id < 0) {
continue;
}
@ -1593,4 +1593,4 @@ class ZeroExport {
#endif /*__ZEROEXPORT__*/
#endif /* #if defined(PLUGIN_ZEROEXPORT) */
#endif /* #if defined(PLUGIN_ZEROEXPORT) */