Skip to content

Commit b81262f

Browse files
committed
TXINH testing fixes
1 parent 401db2d commit b81262f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: hdlc_rec.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#if __WIN32__
4646
#else
4747
#include <fcntl.h>
48+
#include <unistd.h>
4849
#include <errno.h>
4950
#include <string.h>
5051
#endif
@@ -664,7 +665,7 @@ int hdlc_rec_data_detect_any (int chan)
664665
text_color_set(DW_COLOR_ERROR);
665666
dw_printf ("Error opening %s to check TXINH.\n", stemp);
666667
dw_printf ("%s\n", strerror(e));
667-
return;
668+
return busy;
668669
}
669670

670671
if (read (fd, stemp, 1) != 1) {
@@ -682,7 +683,7 @@ int hdlc_rec_data_detect_any (int chan)
682683
}
683684
#endif
684685

685-
return busy;
686+
return (busy != 1);
686687

687688
} /* end hdlc_rec_data_detect_any */
688689

0 commit comments

Comments
 (0)