From 1ebfc79eb090fa1b2826df27e18f7299c3f031f9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 28 May 2020 12:19:46 +1000 Subject: [PATCH] AP_HAL_Linux: enable console for examples Turns out we *do* need this for examples. We're back to stuffing up terminals where examples have been run, but that can be addressed later. --- libraries/AP_HAL_Linux/ConsoleDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/ConsoleDevice.cpp b/libraries/AP_HAL_Linux/ConsoleDevice.cpp index 4041b8537b..97adb1e03f 100644 --- a/libraries/AP_HAL_Linux/ConsoleDevice.cpp +++ b/libraries/AP_HAL_Linux/ConsoleDevice.cpp @@ -28,7 +28,7 @@ bool ConsoleDevice::close() bool ConsoleDevice::open() { -#if APM_BUILD_TYPE(APM_BUILD_Replay) || APM_BUILD_TYPE(APM_BUILD_UNKNOWN) +#if APM_BUILD_TYPE(APM_BUILD_Replay) // we do not want a ConsoleDevice for Replay or any examples. It // screws up the terminal settings and creates all sorts of // weirdnesses in Replay's output.