From a3299ea9be53466e6e86902ec465aba85815edf5 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 Mar 2018 22:05:11 +0000 Subject: [PATCH 1/2] Enable receiver! --- src/sbp_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sbp_device.c b/src/sbp_device.c index baf7359..1db68a1 100755 --- a/src/sbp_device.c +++ b/src/sbp_device.c @@ -174,7 +174,8 @@ int piksi_open( const char *port, int baud ) return PIKSI_ERROR_IO; } options.c_cflag &= ~HUPCL; - options.c_lflag &= ~ICANON; + options.c_lflag &= ~ICANON; + options.c_cflag = CREAD; // enable the receiver options.c_cc[VTIME] = 2; options.c_cc[VMIN] = 0; if( tcsetattr( fd, TCSANOW, &options ) < 0 ) From 0a6530b1f8a2eb4004eb8d1c05025bcc66b10956 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 Mar 2018 22:09:16 +0000 Subject: [PATCH 2/2] Enable receiver --- src/sbp_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbp_device.c b/src/sbp_device.c index 1db68a1..5b0934a 100755 --- a/src/sbp_device.c +++ b/src/sbp_device.c @@ -175,7 +175,7 @@ int piksi_open( const char *port, int baud ) } options.c_cflag &= ~HUPCL; options.c_lflag &= ~ICANON; - options.c_cflag = CREAD; // enable the receiver + options.c_cflag |= CREAD; // enable the receiver options.c_cc[VTIME] = 2; options.c_cc[VMIN] = 0; if( tcsetattr( fd, TCSANOW, &options ) < 0 )