Skip to content

Commit

Permalink
Update EXRAIL2Parser.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Asbelos committed Jun 13, 2024
1 parent b895086 commit fc1217b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions EXRAIL2Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
return;

case OPCODE_ACON: // CBUS ACON
case OPCODE_ACOF: // CBUS ACON
case OPCODE_ACOF: // CBUS ACOF
StringFormatter::send(stream,F("<LS x%c%h%h>\n"),
exrailOpcode==OPCODE_ACOF?'1':'0',
getOperand(progCounter,0),getOperand(progCounter,1));
Expand All @@ -108,31 +108,34 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
// and at the same time build the event index looku.

case OPCODE_ONLCC:
onLCCLookup[lccEventIndex]=progCounter;
StringFormatter::send(stream,F("<LL %d x%h%h%h:%h>\n"),
lccEventIndex,
getOperand(progCounter,1),
getOperand(progCounter,2),
getOperand(progCounter,3),
getOperand(progCounter,0)
);
lccEventIndex++;
SKIPOP;SKIPOP;SKIPOP;SKIPOP;
// start on handler at next
onLCCLookup[lccEventIndex]=progCounter;
lccEventIndex++;
lccProgCounter=progCounter;
return;

case OPCODE_ONACON:
case OPCODE_ONACOF:
onLCCLookup[lccEventIndex]=progCounter;
StringFormatter::send(stream,F("<LL %d x%c%h%h>\n"),
lccEventIndex,
exrailOpcode==OPCODE_ONACOF?'1':'0',
getOperand(progCounter,0),getOperand(progCounter,1)
);
SKIPOP;SKIPOP;
// start on handler at next
onLCCLookup[lccEventIndex]=progCounter;
lccEventIndex++;
SKIPOP;SKIPOP;
lccProgCounter=progCounter;
return;

default:
break;
}
Expand Down

0 comments on commit fc1217b

Please sign in to comment.