From 9e7c3c5c89c77b20121abe94cd23310d59d407e3 Mon Sep 17 00:00:00 2001 From: Gijs de Rooy Date: Mon, 25 Jan 2016 16:38:57 +0100 Subject: [PATCH] Fix #1744: disable commradio when unserviceable --- src/Instrumentation/commradio.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instrumentation/commradio.cxx b/src/Instrumentation/commradio.cxx index 102cca5f1..854ee87e6 100644 --- a/src/Instrumentation/commradio.cxx +++ b/src/Instrumentation/commradio.cxx @@ -653,7 +653,7 @@ void CommRadioImpl::update(double dt) } #endif - if (false == (_power_btn)) { + if (false == (_power_btn) || false == (_serviceable)) { _metarBridge->clearMetar(); _atis = ""; _stationTTL = 0.0; -- 2.39.5