Skip to content

TX inhibit GPIO support #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TXINH testing fixes
  • Loading branch information
ab0tj committed Nov 12, 2015
commit b81262f5276f37af05ed201f94253bfde4bc95ac
5 changes: 3 additions & 2 deletions hdlc_rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#if __WIN32__
#else
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#endif
Expand Down Expand Up @@ -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) {
Expand All @@ -682,7 +683,7 @@ int hdlc_rec_data_detect_any (int chan)
}
#endif

return busy;
return (busy != 1);

} /* end hdlc_rec_data_detect_any */

Expand Down