mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-25 20:01:46 +00:00
Fixed timestamp bug
This commit is contained in:
@@ -19,6 +19,7 @@ enum CosemType {
|
|||||||
CosemTypeString = 0x0A,
|
CosemTypeString = 0x0A,
|
||||||
CosemTypeDLongSigned = 0x05,
|
CosemTypeDLongSigned = 0x05,
|
||||||
CosemTypeDLongUnsigned = 0x06,
|
CosemTypeDLongUnsigned = 0x06,
|
||||||
|
CosemTypeSigned = 0x0F,
|
||||||
CosemTypeLongSigned = 0x10,
|
CosemTypeLongSigned = 0x10,
|
||||||
CosemTypeUnsigned = 0x11,
|
CosemTypeUnsigned = 0x11,
|
||||||
CosemTypeLongUnsigned = 0x12,
|
CosemTypeLongUnsigned = 0x12,
|
||||||
|
|||||||
@@ -740,6 +740,8 @@ IEC6205675::IEC6205675(const char* d, uint8_t useMeterType, MeterConfig* meterCo
|
|||||||
meterTimestamp = tz.toUTC(ts);
|
meterTimestamp = tz.toUTC(ts);
|
||||||
} else if(meterType == AmsTypeAidon) {
|
} else if(meterType == AmsTypeAidon) {
|
||||||
meterTimestamp = ts - 3600; // 21.09.24, the clock is now correct
|
meterTimestamp = ts - 3600; // 21.09.24, the clock is now correct
|
||||||
|
} else {
|
||||||
|
meterTimestamp = ts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user