X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fkt_70.cxx;h=627cc3d7e072a4b3640786cf4b979497052578c1;hb=c0b4531d04215f76f9cf65afbdaed6b7c0b32634;hp=4124ffef8a19d3005b478801b54f8eaa44db392e;hpb=cd9c38e0b49ab437c7b40fd0d894aa82503be83f;p=flightgear.git diff --git a/src/Cockpit/kt_70.cxx b/src/Cockpit/kt_70.cxx index 4124ffef8..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), @@ -64,7 +65,6 @@ FGKT_70::~FGKT_70() { } void FGKT_70::init () { - update(0); // FIXME: use dt } @@ -148,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; }