From b750e9d8b5a42a89709a524fe9a0d620008686ae Mon Sep 17 00:00:00 2001
From: Torsten Dreyer <torsten@ลง3r.de>
Date: Thu, 11 Dec 2014 11:20:34 +0100
Subject: [PATCH] Shut off spoken atis if radio's power button is off

---
 src/Instrumentation/commradio.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Instrumentation/commradio.cxx b/src/Instrumentation/commradio.cxx
index 9a05c9c08..9c8265a6e 100644
--- a/src/Instrumentation/commradio.cxx
+++ b/src/Instrumentation/commradio.cxx
@@ -514,6 +514,8 @@ void CommRadioImpl::update(double dt)
 #endif
 
   if (false == (_power_btn)) {
+    _metarBridge->clearMetar();
+    _atis = "";
     _stationTTL = 0.0;
     return;
   }