diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:17:41 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:17:41 +0100 |
| commit | ea93adeffbb191c502e9b27be4e7a4c8cdd332a5 (patch) | |
| tree | 0574e23ccb898ff523ba1105682bbb77b8efeb5f /RigControl.c | |
| parent | 592e5967b8fcd79423802071319d0c646f2080df (diff) | |
New upstream version 6.0.26.1+repackupstream/6.0.26.1+repackupstream/latest
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);
|
