From: James Turner Date: Sun, 12 May 2013 10:36:33 +0000 (+0100) Subject: Off-by-one spotted by Clement. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0422ea56723d35a6bfe3bb1e621ebdba78787479;p=flightgear.git Off-by-one spotted by Clement. --- diff --git a/src/Instrumentation/transponder.cxx b/src/Instrumentation/transponder.cxx index 3ff7f77c1..2658cf49f 100644 --- a/src/Instrumentation/transponder.cxx +++ b/src/Instrumentation/transponder.cxx @@ -191,7 +191,7 @@ void Transponder::update(double dt) } } - if (_knob > KNOB_ON) { + if (_knob >= KNOB_ON) { _transmittedId_node->setIntValue(_idCode_node->getIntValue()); } else { _transmittedId_node->setIntValue(INVALID_ID);