Fix parentheses error in AlarmLogParser

This commit is contained in:
Thomas Basler 2022-10-04 23:38:32 +02:00
parent 2447d57301
commit d021d7529f

View File

@ -40,12 +40,12 @@ void AlarmLogParser::getLogEntry(uint8_t entryId, AlarmLogEntry_t* entry)
uint32_t wcode = (uint16_t)_payloadAlarmLog[entryStartOffset] << 8 | _payloadAlarmLog[entryStartOffset + 1];
uint32_t startTimeOffset = 0;
if ((wcode >> 13) & 0x01 == 1) {
if (((wcode >> 13) & 0x01) == 1) {
startTimeOffset = 12 * 60 * 60;
}
uint32_t endTimeOffset = 0;
if ((wcode >> 12) & 0x01 == 1) {
if (((wcode >> 12) & 0x01) == 1) {
endTimeOffset = 12 * 60 * 60;
}