diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:17:44 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:17:44 +0100 |
| commit | c1e2370509e9f78357c3a74aac3babcfd88343b4 (patch) | |
| tree | a73fe6e590a6dbdd8d595cb0622c6ae16666a3b5 /RigControl.c | |
| parent | 6c91842feefcdd0684f7008c6e5402071541794e (diff) | |
| parent | ea93adeffbb191c502e9b27be4e7a4c8cdd332a5 (diff) | |
Update upstream source from tag 'upstream/6.0.26.1+repack'
Update to upstream version '6.0.26.1+repack'
with Debian dir 40bbe79cb2c498826b4c6fd8726fdfe00e8d0cc4
Diffstat (limited to 'RigControl.c')
| -rw-r--r-- | RigControl.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/RigControl.c b/RigControl.c index c485792..2c8e68b 100644 --- a/RigControl.c +++ b/RigControl.c @@ -8308,7 +8308,17 @@ void HLSetPTT(SOCKET Sock, struct RIGINFO * RIG, unsigned char * Msg, char sep) {
char Resp[80];
int Len;
- int ptt = atoi(&Msg[1]);
+ int ptt;
+
+ // Might be T VFOA 2 or just T 2
+
+
+ if (strlen(Msg) > 6)
+ ptt = atoi(&Msg[6]);
+ else
+ ptt = atoi(&Msg[1]);
+
+ printf("%s %d %d\n", Msg, strlen(Msg), ptt);
if (ptt)
Rig_PTTEx(RIG, 1, NULL);
|
