From 5a6c8308d32ef4816cec5db48d96a94df015e6d1 Mon Sep 17 00:00:00 2001 From: Rob French Date: Tue, 26 May 2020 10:48:35 -0500 Subject: [PATCH] Quick update to support a mode request message from the IOP. Compiles, runs; not comprehensively tested. --- ubitx_20/cat_libs.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ubitx_20/cat_libs.ino b/ubitx_20/cat_libs.ino index d6455e3..e59f31c 100644 --- a/ubitx_20/cat_libs.ino +++ b/ubitx_20/cat_libs.ino @@ -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) {