diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-02-12 23:26:50 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-02-12 23:26:50 +0000 |
| commit | 2dd6d1f7bf3868af25a6699c36666bde344f574c (patch) | |
| tree | 4aae1a79440515afaab1d8fea8492e19bc618947 /RigControl.c | |
| parent | 6ee8a719cf085f8e4d10007238a115eee4c7dc42 (diff) | |
| parent | b8e40a44c95ea6e9933a130e9465eb98fa650aed (diff) | |
Update upstream source from tag 'upstream/6.0.24.29'
Update to upstream version '6.0.24.29'
with Debian dir ba277a512a8b14521d23a1497e82b450759ea31d
Diffstat (limited to 'RigControl.c')
| -rw-r--r-- | RigControl.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/RigControl.c b/RigControl.c index b7e22d1..ea7b5c2 100644 --- a/RigControl.c +++ b/RigControl.c @@ -1222,11 +1222,12 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR char c;
int val;
char * ptr1;
+ char * ptr2;
int Len;
if (n < 3)
{
- strcpy(Command, "Sorry - Invalid Format - should be HEX Hexstring\r");
+ strcpy(Command, "Sorry - Invalid Format - should be CMD Params\r");
return FALSE;
}
@@ -1315,6 +1316,31 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR Len = 5;
break;
+ case FLRIG:
+
+ // Two string params - command and params eg rig.set_ptt <i4>1</i4>"
+ // or maybe param could be format data - eg i 1
+
+ _strlwr(ptr1);
+
+ ptr2 = strlop(ptr1, ' ');
+
+ if (ptr2 == 0)
+ {
+ strcpy(Command, "Sorry - Invalid Format - should be CMD cmd params\r");
+ return FALSE;
+ }
+
+ strlop(ptr2, ' ');
+
+ FLRIGSendCommand(PORT, ptr1, ptr2);
+
+ return FALSE;
+
+
+
+
+
default:
sprintf(Command, "Sorry - CMD not supported on your Radio\r");
return FALSE;
|
