summaryrefslogtreecommitdiffstats
path: root/utils/bcm4751_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/bcm4751_test.c')
-rw-r--r--utils/bcm4751_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/bcm4751_test.c b/utils/bcm4751_test.c
index 538978c..b00b0c2 100644
--- a/utils/bcm4751_test.c
+++ b/utils/bcm4751_test.c
@@ -156,11 +156,12 @@ int main(int argc, char *argv[])
ioctl(serial_fd, TCFLSH, 0x2);
cfmakeraw(&termios);
- cfsetispeed(&termios, B460800);
- cfsetospeed(&termios, B460800);
+ /* the gps lib switches to B460800 at some point, when? why? */
+// cfsetispeed(&termios, B460800);
+// cfsetospeed(&termios, B460800);
// This is the magic to contact the chip
- termios.c_cflag = 0x800018b2;
+ termios.c_cflag = CRTSCTS | CS8 | CREAD | CLOCAL | B115200;
// termios.c_cc[5]=0x01;
// termios.c_cc[6]=0x00;