Update simulators

pull/1501/head
Mike Black W9MDB 2024-02-01 12:38:12 -06:00
rodzic 68fca2c73d
commit 434f399d12
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -453,7 +453,7 @@ void frameParse(int fd, unsigned char *frame, int len)
} }
frame[11] = 0xfd; frame[11] = 0xfd;
#if 1 #if 0
unsigned char frame2[11]; unsigned char frame2[11];
frame2[0] = 0xfe; frame2[0] = 0xfe;
@ -509,7 +509,7 @@ void frameParse(int fd, unsigned char *frame, int len)
frame[6] = frame[5] == 0 ? modeA : modeB; frame[6] = frame[5] == 0 ? modeA : modeB;
frame[7] = frame[5] == 0 ? datamodeA : datamodeB; frame[7] = frame[5] == 0 ? datamodeA : datamodeB;
frame[8] = 0xfb; frame[8] = 0x01;
frame[9] = 0xfd; frame[9] = 0xfd;
n = write(fd, frame, 10); n = write(fd, frame, 10);
} }

Wyświetl plik

@ -438,7 +438,7 @@ int main(int argc, char *argv[])
} }
else if (strncmp(buf, "KS;", 3) == 0) else if (strncmp(buf, "KS;", 3) == 0)
{ {
sprintf(buf, "KS%d;", keyspd); sprintf(buf, "KS%03d;", keyspd);
write(fd, buf, strlen(buf)); write(fd, buf, strlen(buf));
} }
else if (strncmp(buf, "KS", 2) == 0) else if (strncmp(buf, "KS", 2) == 0)