From 5a13e2a658abde8dc3ae0cd76f1521476b1ddae9 Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 17 Aug 2023 00:52:29 +0200 Subject: [PATCH] 0.7.34 optimized code reading --- src/hm/hmInverter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hm/hmInverter.h b/src/hm/hmInverter.h index 7e7c9260..594f4211 100644 --- a/src/hm/hmInverter.h +++ b/src/hm/hmInverter.h @@ -477,7 +477,7 @@ class Inverter { switch (cmd) { case RealTimeRunData_Debug: if (INV_TYPE_1CH == type) { - if(IV_HM == ivGen || IV_MI == ivGen) { + if((IV_HM == ivGen) || (IV_MI == ivGen)) { rec->length = (uint8_t)(HM1CH_LIST_LEN); rec->assign = (byteAssign_t *)hm1chAssignment; rec->pyldLen = HM1CH_PAYLOAD_LEN; @@ -492,7 +492,7 @@ class Inverter { channels = 1; } else if (INV_TYPE_2CH == type) { - if(IV_HM == ivGen || IV_MI == ivGen) { + if((IV_HM == ivGen) || (IV_MI == ivGen)) { rec->length = (uint8_t)(HM2CH_LIST_LEN); rec->assign = (byteAssign_t *)hm2chAssignment; rec->pyldLen = HM2CH_PAYLOAD_LEN; @@ -504,7 +504,7 @@ class Inverter { channels = 2; } else if (INV_TYPE_4CH == type) { - if(IV_HM == ivGen || IV_MI == ivGen) { + if((IV_HM == ivGen) || (IV_MI == ivGen)) { rec->length = (uint8_t)(HM4CH_LIST_LEN); rec->assign = (byteAssign_t *)hm4chAssignment; rec->pyldLen = HM4CH_PAYLOAD_LEN;