kopia lustrzana https://github.com/Hamlib/Hamlib
Update Icom simulators for better behavior at rigctl shutdown
rodzic
50563e2fce
commit
30f47cdeba
|
@ -103,7 +103,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -113,6 +113,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -103,7 +103,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -113,6 +113,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -94,7 +94,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -101,7 +101,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -115,7 +115,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -125,6 +125,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -96,7 +96,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -94,7 +94,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -94,7 +94,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -69,7 +69,7 @@ frameGet(int fd, unsigned char *buf)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
memset(buf, 0, BUFSIZE);
|
memset(buf, 0, BUFSIZE);
|
||||||
unsigned char c;
|
unsigned char c = 0xff;
|
||||||
|
|
||||||
again:
|
again:
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,18 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
double freq;
|
double freq;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//dumphex(frame, len);
|
//dumphex(frame, len);
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
{
|
{
|
||||||
|
|
|
@ -99,7 +99,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
{
|
{
|
||||||
double freq;
|
double freq;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -93,7 +93,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -102,6 +102,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
{
|
{
|
||||||
double freq;
|
double freq;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -95,7 +95,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error??? c=x%02x\n", c);
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
{
|
{
|
||||||
double freq;
|
double freq;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -69,7 +69,7 @@ frameGet(int fd, unsigned char *buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error???\n");
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -78,6 +78,12 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||||
{
|
{
|
||||||
double freq;
|
double freq;
|
||||||
|
|
||||||
|
if (len == 0)
|
||||||
|
{
|
||||||
|
printf("%s: len==0\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dumphex(frame, len);
|
dumphex(frame, len);
|
||||||
|
|
||||||
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
if (frame[0] != 0xfe && frame[1] != 0xfe)
|
||||||
|
|
|
@ -90,7 +90,7 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error???\n");
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ frameGet(int fd, unsigned char *buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Error???\n");
|
printf("Error %s\n", strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue