We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 401db2d commit b81262fCopy full SHA for b81262f
hdlc_rec.c
@@ -45,6 +45,7 @@
45
#if __WIN32__
46
#else
47
#include <fcntl.h>
48
+#include <unistd.h>
49
#include <errno.h>
50
#include <string.h>
51
#endif
@@ -664,7 +665,7 @@ int hdlc_rec_data_detect_any (int chan)
664
665
text_color_set(DW_COLOR_ERROR);
666
dw_printf ("Error opening %s to check TXINH.\n", stemp);
667
dw_printf ("%s\n", strerror(e));
- return;
668
+ return busy;
669
}
670
671
if (read (fd, stemp, 1) != 1) {
@@ -682,7 +683,7 @@ int hdlc_rec_data_detect_any (int chan)
682
683
684
685
- return busy;
686
+ return (busy != 1);
687
688
} /* end hdlc_rec_data_detect_any */
689
0 commit comments