From 776aaef787326577179673015114d1a9a989f5c8 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Tue, 11 Jun 2024 20:19:56 +0200 Subject: [PATCH] Added command 'K' to XDRGTK protocol to adjust scanhold --- src/comms.cpp | 11 +++++++++++ src/comms.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/comms.cpp b/src/comms.cpp index ca0895a..7cd1e81 100644 --- a/src/comms.cpp +++ b/src/comms.cpp @@ -515,6 +515,17 @@ void XDRGTKRoutine() { DataPrint("J" + String(scandxtemp) + "\n"); break; + case 'K': + byte scanholdtemp; + scanholdtemp = atol(buff + 1); + if (scanholdtemp < 31) { + scanhold = scanholdtemp; + EEPROM.writeByte(EE_BYTE_SCANHOLD, scanhold); + EEPROM.commit(); + } + DataPrint("K" + String(scanhold) + "\n"); + break; + case 'M': byte XDRband; XDRband = atol(buff + 1); diff --git a/src/comms.h b/src/comms.h index 25f299e..f795478 100644 --- a/src/comms.h +++ b/src/comms.h @@ -47,6 +47,7 @@ extern byte iMSEQ; extern byte iMSset; extern byte language; extern byte memorypos; +extern byte scanhold; extern byte stepsize; extern byte subnetclient; extern byte TEF;