mirror of https://github.com/wb2osz/direwolf.git
TXINH testing fixes
This commit is contained in:
parent
401db2d1d5
commit
b81262f527
|
@ -45,6 +45,7 @@
|
||||||
#if __WIN32__
|
#if __WIN32__
|
||||||
#else
|
#else
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -664,7 +665,7 @@ int hdlc_rec_data_detect_any (int chan)
|
||||||
text_color_set(DW_COLOR_ERROR);
|
text_color_set(DW_COLOR_ERROR);
|
||||||
dw_printf ("Error opening %s to check TXINH.\n", stemp);
|
dw_printf ("Error opening %s to check TXINH.\n", stemp);
|
||||||
dw_printf ("%s\n", strerror(e));
|
dw_printf ("%s\n", strerror(e));
|
||||||
return;
|
return busy;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (read (fd, stemp, 1) != 1) {
|
if (read (fd, stemp, 1) != 1) {
|
||||||
|
@ -682,7 +683,7 @@ int hdlc_rec_data_detect_any (int chan)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return busy;
|
return (busy != 1);
|
||||||
|
|
||||||
} /* end hdlc_rec_data_detect_any */
|
} /* end hdlc_rec_data_detect_any */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue