aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sercp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sercp.c b/sercp.c
index 858c8ea..234a3fb 100644
--- a/sercp.c
+++ b/sercp.c
@@ -707,7 +707,7 @@ int OpenUart() {
}
cfmakeraw(&newtio);
cfsetspeed(&newtio, baud_rate);
-#ifdef __APPLE__
+#if defined __APPLE__ || defined BSD
newtio.c_cflag = CS8 | CLOCAL | CREAD | CCTS_OFLOW | CRTS_IFLOW; // CSTOPB - two stop bits NOT
#else
newtio.c_cflag = CS8 | CLOCAL | CREAD | CRTSCTS; // CSTOPB - two stop bits NOT