mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 21:36:11 +02:00
0.7.34
optimized code reading
This commit is contained in:
parent
d89f335f86
commit
5a13e2a658
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue