From 71d4ca14f88735ae4f70597c2cee85c6412e0619 Mon Sep 17 00:00:00 2001 From: Andreas Pfaller Date: Wed, 10 Apr 2013 22:19:57 +0200 Subject: [PATCH] Device/Driver/LX: Restore non-bulk baud rate after declaration/flight download --- src/Device/Driver/LX/Mode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Device/Driver/LX/Mode.cpp b/src/Device/Driver/LX/Mode.cpp index 67ca40290..c463b0688 100644 --- a/src/Device/Driver/LX/Mode.cpp +++ b/src/Device/Driver/LX/Mode.cpp @@ -65,9 +65,12 @@ LXDevice::EnableNMEA(OperationEnvironment &env) busy = false; } - if (is_colibri) + if (is_colibri) { /* avoid confusing a Colibri with new protocol commands */ + if (old_baud_rate != 0) + port.SetBaudrate(old_baud_rate); return true; + } /* just in case the LX1600 is still in pass-through mode: */ V7::ModeVSeven(port, env); -- 2.11.4.GIT