Update simelecraft.c

This commit is contained in:
Mike Black W9MDB 2022-05-11 16:46:17 -05:00
parent 6ad3ace726
commit 1f5f808057

View File

@ -247,6 +247,21 @@ int main(int argc, char *argv[])
{
sscanf(buf, "FB%d", &freqb);
}
else if (strncmp(buf, "FR;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "FR0;");
write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "FT;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "FT0;");
write(fd, buf, strlen(buf));
}
else if (strncmp(buf, "TQ;", 3) == 0)
{
SNPRINTF(buf, sizeof(buf), "TQ0;");
write(fd, buf, strlen(buf));
}
else if (strlen(buf) > 0)
{
fprintf(stderr, "Unknown command: %s\n", buf);