X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fkt_70.cxx;h=627cc3d7e072a4b3640786cf4b979497052578c1;hb=c0b4531d04215f76f9cf65afbdaed6b7c0b32634;hp=652eb3c25c621bb1574067e0637cab443cf639ea;hpb=f38c88b762bc6c317669e8e0b00a92b09ee4671a;p=flightgear.git diff --git a/src/Cockpit/kt_70.cxx b/src/Cockpit/kt_70.cxx index 652eb3c25..627cc3d7e 100644 --- a/src/Cockpit/kt_70.cxx +++ b/src/Cockpit/kt_70.cxx @@ -41,6 +41,7 @@ FGKT_70::FGKT_70() : lat_node(fgGetNode("/position/latitude-deg", true)), alt_node(fgGetNode("/position/altitude-ft", true)), bus_power(fgGetNode("/systems/electrical/outputs/transponder", true)), + serviceable_node(fgGetNode("/radios/kt-70/inputs/serviceable", true)), r_flash_time(0.0), ident_mode(false), ident_btn(false), @@ -147,7 +148,7 @@ void FGKT_70::update( double dt ) { sby_ann = false; reply_ann = false; - if ( has_power() ) { + if ( has_power() && serviceable_node->getBoolValue() ) { // sanity checks if ( digit1 < 0 ) { digit1 = 0; } if ( digit1 > 7 ) { digit1 = 7; }