kopia lustrzana https://github.com/Hamlib/Hamlib
Update simulators
rodzic
55370c1e64
commit
22aee2ff31
|
@ -200,6 +200,7 @@ void frameParse(int fd, unsigned char *frame, int len)
|
|||
|
||||
frame[4] = 0xfb;
|
||||
frame[5] = 0xfd;
|
||||
hl_usleep(20*1000);
|
||||
n = write(fd, frame, 6);
|
||||
break;
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ int civ_731_mode = 0;
|
|||
vfo_t current_vfo = RIG_VFO_A;
|
||||
int split = 0;
|
||||
int keyspd = 85; // 85=20WPM
|
||||
int band=8;
|
||||
|
||||
// we make B different from A to ensure we see a difference at startup
|
||||
float freqA = 14074000;
|
||||
|
@ -365,6 +366,22 @@ void frameParse(int fd, unsigned char *frame, int len)
|
|||
case 0x1a: // miscellaneous things
|
||||
switch (frame[5])
|
||||
{
|
||||
case 0x01: // band
|
||||
if (frame[6] == 0xfd)
|
||||
{
|
||||
frame[6] = band;
|
||||
frame[7] = 0xfd;
|
||||
n = write(fd,frame,8);
|
||||
}
|
||||
else
|
||||
{
|
||||
band = frame[6];
|
||||
printf("Band select=%d\n",band);
|
||||
frame[4] = 0xfb;
|
||||
frame[5] = 0xfe;
|
||||
n = write(fd,frame,6);
|
||||
}
|
||||
break;
|
||||
case 0x03: // width
|
||||
if (current_vfo == RIG_VFO_A || current_vfo == RIG_VFO_MAIN) { frame[6] = widthA; }
|
||||
else { frame[6] = widthB; }
|
||||
|
|
Ładowanie…
Reference in New Issue