Quick update to support a mode request message from the IOP. Compiles,

runs; not comprehensively tested.
This commit is contained in:
Rob French 2020-05-26 10:48:35 -05:00
parent cc78a9f9a1
commit 5a6c8308d3
1 changed files with 5 additions and 1 deletions

View File

@ -884,7 +884,7 @@ void Check_Cat(byte fromType)
isProcessCheck_Cat = 1;
if (readPrefix == IOP_PREFIX) {
recvIOPMessage(msg, CAT_BUFF, 5); // not super robust... if IOP ever sends more than a 5 (6) byte message
recvIOPMessage(msg, CAT_BUFF, 5); // not super robust... if IOP ever sends more (or less) than a 5 (6) byte message
// following assumes it's a status message, 4 chars (including trailing null, which I'm ignoring...
switch(msg.id) {
case IOP_SSB_STATUS_MSG:
@ -897,6 +897,10 @@ void Check_Cat(byte fromType)
displaySmeter = false;
delaySmeter = millis() + SMETER_DELAY_TIME;
break;
case IOP_MODE_REQUEST:
iopSendMode(cwMode, isUSB, digiMode, isTest);
break;
}
} else if (readPrefix == CAT_PREFIX) {