mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-10 12:49:21 +00:00
Fixed stuck value
This commit is contained in:
@@ -148,7 +148,9 @@ LNG::LNG(AmsData& meterState, const char* payload, uint8_t useMeterType, MeterCo
|
||||
int32_t sum = o170-o270;
|
||||
if(sum > 0) {
|
||||
activeImportPower = sum;
|
||||
activeExportPower = 0;
|
||||
} else {
|
||||
activeImportPower = 0;
|
||||
activeExportPower = sum * -1;
|
||||
listType = listType >= 2 ? listType : 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user