Fix simic7300 to work with testcpp.cc

pull/1347/head
Mike Black W9MDB 2023-07-18 22:33:14 -05:00
rodzic 0540fa4f12
commit d6b8575eb3
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -8,10 +8,10 @@
int main(int argc, char* argv[])
{
Rig myRig {RIG_MODEL_DUMMY};
Rig myRig {RIG_MODEL_IC7300};
try {
myRig.setConf("rig_pathname", "/dev/ttyS1");
myRig.setConf("rig_pathname", "/dev/pts/4");
myRig.open();
myRig.setFreq(MHz(144));
std::cout << myRig.getLevelI(RIG_LEVEL_STRENGTH) << "dB" << std::endl;

Wyświetl plik

@ -304,6 +304,13 @@ void frameParse(int fd, unsigned char *frame, int len)
{
static int meter_level = 0;
case 0x02:
frame[6] = 00;
frame[7] = 00;
frame[8] = 0xfd;
n = write(fd, frame, 9);
break;
case 0x07:
frame[6] = ovf_status;
frame[7] = 0xfd;