From e1e9002fad90a0d42c16e7052ca89828d15b103d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 16 Dec 2011 19:44:37 +1100 Subject: [PATCH] only check for "enter 3 times" in first 20s after boot we don't want stray bytes on serial3 to make us enter the CLI during flight! --- ArduPlane/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 9b19f4a846..cf6f2293f8 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -751,7 +751,7 @@ GCS_MAVLINK::update(void) #if CLI_ENABLED == ENABLED /* allow CLI to be started by hitting enter 3 times, if no heartbeat packets have been received */ - if (mavlink_active == 0) { + if (mavlink_active == 0 && millis() < 20000) { if (c == '\n' || c == '\r') { crlf_count++; } else {