kopia lustrzana https://github.com/Hamlib/Hamlib
Update simic9700.c
rodzic
d29caa7cad
commit
793bc1a0dc
|
@ -51,6 +51,7 @@ int satmode = 0;
|
||||||
int agc_time = 1;
|
int agc_time = 1;
|
||||||
int ovf_status = 0;
|
int ovf_status = 0;
|
||||||
int powerstat = 1;
|
int powerstat = 1;
|
||||||
|
int keyspd = 90;
|
||||||
|
|
||||||
void dumphex(const unsigned char *buf, int n)
|
void dumphex(const unsigned char *buf, int n)
|
||||||
{
|
{
|
||||||
|
@ -282,6 +283,25 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 0x0c:
|
||||||
|
if (frame[6] != 0xfd)
|
||||||
|
{
|
||||||
|
frame[6] = 0xfb;
|
||||||
|
dumphex(frame, 7);
|
||||||
|
WRITE(fd, frame, 7);
|
||||||
|
printf("ACK x14 x0c\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
frame[6] = 0;
|
||||||
|
frame[7] = keyspd;
|
||||||
|
frame[8] = 0xfd;
|
||||||
|
dumphex(frame, 9);
|
||||||
|
WRITE(fd, frame, 9);
|
||||||
|
printf("SEND x14 x0c\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x15:
|
case 0x15:
|
||||||
|
|
Ładowanie…
Reference in New Issue