From 5b0233b9bf32771857d58529863f4fc1f442e9b2 Mon Sep 17 00:00:00 2001 From: barzanisar Date: Fri, 16 Mar 2018 13:50:12 +0100 Subject: [PATCH 1/2] Beat's changes to make QGC connect with crazyflie --- src/modules/syslink/syslink_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/syslink/syslink_main.cpp b/src/modules/syslink/syslink_main.cpp index c286445ad2b8..bcb597f5de5b 100644 --- a/src/modules/syslink/syslink_main.cpp +++ b/src/modules/syslink/syslink_main.cpp @@ -254,7 +254,9 @@ Syslink::open_serial(const char *dev) tcgetattr(fd, &config); // clear ONLCR flag (which appends a CR for every LF) - config.c_oflag &= ~ONLCR; + config.c_oflag &= 0; + + config.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG); // Disable hardware flow control config.c_cflag &= ~CRTSCTS; From 99005a837887f701312bf45eefe83759e3994afe Mon Sep 17 00:00:00 2001 From: barzanisar Date: Fri, 16 Mar 2018 14:14:52 +0100 Subject: [PATCH 2/2] Update syslink_main.cpp --- src/modules/syslink/syslink_main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/syslink/syslink_main.cpp b/src/modules/syslink/syslink_main.cpp index bcb597f5de5b..4f859cbc9126 100644 --- a/src/modules/syslink/syslink_main.cpp +++ b/src/modules/syslink/syslink_main.cpp @@ -255,7 +255,6 @@ Syslink::open_serial(const char *dev) // clear ONLCR flag (which appends a CR for every LF) config.c_oflag &= 0; - config.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG); // Disable hardware flow control