From 810119a9729baa2a81e7c3003a937fb75f79f287 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Fri, 31 May 2024 12:38:50 +0200 Subject: [PATCH] Set stepsize to default when using XDRGTK seek function --- src/comms.cpp | 6 ++++++ src/comms.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/comms.cpp b/src/comms.cpp index a05af01..466e171 100644 --- a/src/comms.cpp +++ b/src/comms.cpp @@ -381,6 +381,12 @@ void XDRGTKRoutine() { } byte scanmethod; scanmethod = atol(buff + 1); + + if (band < BAND_GAP) { + stepsize = 0; + ShowStepSize(); + } + if (scanmethod == 1) { DataPrint("C1\n"); direction = false; diff --git a/src/comms.h b/src/comms.h index eef6d0c..187075f 100644 --- a/src/comms.h +++ b/src/comms.h @@ -45,6 +45,7 @@ extern byte iMSEQ; extern byte iMSset; extern byte language; extern byte memorypos; +extern byte stepsize; extern byte subnetclient; extern byte TEF; extern char buff[16]; @@ -135,5 +136,6 @@ extern void updateiMS(); extern void updateEQ(); extern void tftPrint(int8_t offset, const String & text, int16_t x, int16_t y, int color, int smoothcolor, uint8_t fontsize); extern void showAutoSquelch(bool mode); +extern void ShowStepSize(); #endif \ No newline at end of file