summaryrefslogtreecommitdiff
path: root/RigControl.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2023-06-21 08:21:04 +0100
committerg8bpq <john.wiseman@cantab.net>2023-06-21 08:21:04 +0100
commit75b5bcc9a97b38c6c0c210bf14fabad9cadf704a (patch)
tree913d37a3946a40e9694833ed36fd5a8e02a23d42 /RigControl.c
parenta21121fbfce48307740e6ade5f4f16531501b053 (diff)
6.0.23.7623.77
Diffstat (limited to 'RigControl.c')
-rw-r--r--RigControl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/RigControl.c b/RigControl.c
index 090816a..9b33f57 100644
--- a/RigControl.c
+++ b/RigControl.c
@@ -896,10 +896,10 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR
{
if (RIG->NumberofBands)
{
- RIG->ScanStopped &= (0xffffffff ^ (1 << Port));
+ RIG->ScanStopped &= (0xffffffffffffffff ^ ((uint64_t)1 << Port));
if (Session != (TRANSPORTENTRY *) -1) // Used for internal Stop/Start
- RIG->ScanStopped &= 0xfffffffe; // Clear Manual Stopped Bit
+ RIG->ScanStopped &= 0xfffffffffffffffe; // Clear Manual Stopped Bit
if (n > 2)
RIG->ScanCounter = atoi(Mode) * 10; //Start Delay
@@ -926,7 +926,7 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR
if (_stricmp(FreqString, "SCANSTOP") == 0)
{
- RIG->ScanStopped |= (1 << Port);
+ RIG->ScanStopped |= ((uint64_t)1 << Port);
if (Session != (TRANSPORTENTRY *) -1) // Used for internal Stop/Start
RIG->ScanStopped |= 1; // Set Manual Stopped Bit
@@ -2800,7 +2800,7 @@ void CheckRX(struct RIGPORTINFO * PORT)
return;
if (PORT->RXBuffer[Length-1] != 0xfd)
- return;
+ return; // Echo
ProcessICOMFrame(PORT, PORT->RXBuffer, Length); // Could have multiple packets in buffer