From 3aae9607fcf3127a044d1e30fa2a8904f81f6b7b Mon Sep 17 00:00:00 2001 From: Pavel Vymetálek Date: Fri, 3 Apr 2020 17:18:06 +0200 Subject: Serial port flags for BSD or __APPLE__ --- sercp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit