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.