diff options
author | Pavel Vymetálek <pavel@vym.cz> | 2020-04-03 17:18:06 +0200 |
---|---|---|
committer | Pavel Vymetálek <pavel@vym.cz> | 2020-04-03 17:18:06 +0200 |
commit | 3aae9607fcf3127a044d1e30fa2a8904f81f6b7b (patch) | |
tree | 7fd84123d66cb00d4568337e6a8f36bb7052a79e /sercp.c | |
parent | da3ab5ca185ebdf80a84893b2033c62a0aed8fd2 (diff) | |
download | sercp-pc-3aae9607fcf3127a044d1e30fa2a8904f81f6b7b.tar.gz |
Serial port flags for BSD or __APPLE__
Diffstat (limited to 'sercp.c')
-rw-r--r-- | sercp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |