Update Icom simulators for better behavior at rigctl shutdown

pull/1434/head
Mike Black W9MDB 2023-11-25 09:29:01 -06:00
rodzic 50563e2fce
commit 30f47cdeba
15 zmienionych plików z 99 dodań i 16 usunięć

Wyświetl plik

@ -103,7 +103,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -113,6 +113,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -103,7 +103,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -113,6 +113,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -94,7 +94,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -101,7 +101,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -111,6 +111,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -115,7 +115,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -125,6 +125,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -96,7 +96,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -106,6 +106,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -94,7 +94,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -94,7 +94,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -69,7 +69,7 @@ frameGet(int fd, unsigned char *buf)
{
int i = 0;
memset(buf, 0, BUFSIZE);
unsigned char c;
unsigned char c = 0xff;
again:
@ -101,7 +101,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -111,7 +111,18 @@ void frameParse(int fd, unsigned char *frame, int len)
double freq;
int n = 0;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
//dumphex(frame, len);
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
if (frame[0] != 0xfe && frame[1] != 0xfe)
{

Wyświetl plik

@ -99,7 +99,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -108,6 +108,12 @@ void frameParse(int fd, unsigned char *frame, int len)
{
double freq;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -93,7 +93,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -102,6 +102,12 @@ void frameParse(int fd, unsigned char *frame, int len)
{
double freq;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -95,7 +95,7 @@ again:
}
}
printf("Error??? c=x%02x\n", c);
printf("Error %s\n", strerror(errno));
return 0;
}
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
{
double freq;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -69,7 +69,7 @@ frameGet(int fd, unsigned char *buf)
}
}
printf("Error???\n");
printf("Error %s\n", strerror(errno));
return 0;
}
@ -78,6 +78,12 @@ void frameParse(int fd, unsigned char *frame, int len)
{
double freq;
if (len == 0)
{
printf("%s: len==0\n", __func__);
return;
}
dumphex(frame, len);
if (frame[0] != 0xfe && frame[1] != 0xfe)

Wyświetl plik

@ -90,7 +90,7 @@ again:
}
}
printf("Error???\n");
printf("Error %s\n", strerror(errno));
return 0;
}

Wyświetl plik

@ -69,7 +69,7 @@ frameGet(int fd, unsigned char *buf)
}
}
printf("Error???\n");
printf("Error %s\n", strerror(errno));
return 0;
}