kopia lustrzana https://github.com/Hamlib/Hamlib
Update simulators
rodzic
68fca2c73d
commit
434f399d12
|
@ -453,7 +453,7 @@ void frameParse(int fd, unsigned char *frame, int len)
|
|||
}
|
||||
|
||||
frame[11] = 0xfd;
|
||||
#if 1
|
||||
#if 0
|
||||
unsigned char frame2[11];
|
||||
|
||||
frame2[0] = 0xfe;
|
||||
|
@ -509,7 +509,7 @@ void frameParse(int fd, unsigned char *frame, int len)
|
|||
|
||||
frame[6] = frame[5] == 0 ? modeA : modeB;
|
||||
frame[7] = frame[5] == 0 ? datamodeA : datamodeB;
|
||||
frame[8] = 0xfb;
|
||||
frame[8] = 0x01;
|
||||
frame[9] = 0xfd;
|
||||
n = write(fd, frame, 10);
|
||||
}
|
||||
|
|
|
@ -438,7 +438,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
else if (strncmp(buf, "KS;", 3) == 0)
|
||||
{
|
||||
sprintf(buf, "KS%d;", keyspd);
|
||||
sprintf(buf, "KS%03d;", keyspd);
|
||||
write(fd, buf, strlen(buf));
|
||||
}
|
||||
else if (strncmp(buf, "KS", 2) == 0)
|
||||
|
|
Ładowanie…
Reference in New Issue