Allow W command to use any hex terminator

pull/1347/head
Mike Black W9MDB 2023-07-17 09:33:18 -05:00
rodzic 52df1e4f0a
commit 5df0ae02f1
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -5006,8 +5006,15 @@ declare_proto_rig(send_cmd)
eom_buf[0] = 0;
}
int hexval;
if (arg2[0] == ';') { eom_buf[0] = ';'; }
else if (strstr(arg2,"fd")) eom_buf[0] = 0xfd; // ICOM answer terminator
else
{
sscanf(arg2,"\\0x%2x", &hexval);
eom_buf[0] = hexval;
}
if (simulate)
{