From b81262f5276f37af05ed201f94253bfde4bc95ac Mon Sep 17 00:00:00 2001 From: Alex Swedenburg Date: Thu, 12 Nov 2015 15:13:20 -0700 Subject: [PATCH] TXINH testing fixes --- hdlc_rec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hdlc_rec.c b/hdlc_rec.c index f832204..08b92a0 100644 --- a/hdlc_rec.c +++ b/hdlc_rec.c @@ -45,6 +45,7 @@ #if __WIN32__ #else #include +#include #include #include #endif @@ -664,7 +665,7 @@ int hdlc_rec_data_detect_any (int chan) text_color_set(DW_COLOR_ERROR); dw_printf ("Error opening %s to check TXINH.\n", stemp); dw_printf ("%s\n", strerror(e)); - return; + return busy; } if (read (fd, stemp, 1) != 1) { @@ -682,7 +683,7 @@ int hdlc_rec_data_detect_any (int chan) } #endif - return busy; + return (busy != 1); } /* end hdlc_rec_data_detect_any */