summaryrefslogtreecommitdiff
path: root/RigControl.c
diff options
context:
space:
mode:
Diffstat (limited to 'RigControl.c')
-rw-r--r--RigControl.c12
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);