]> git.mxchange.org Git - flightgear.git/commitdiff
Off-by-one spotted by Clement.
authorJames Turner <zakalawe@mac.com>
Sun, 12 May 2013 10:36:33 +0000 (11:36 +0100)
committerJames Turner <zakalawe@mac.com>
Sun, 12 May 2013 10:36:33 +0000 (11:36 +0100)
src/Instrumentation/transponder.cxx

index 3ff7f77c13f2ffa391a436c050dd813c02454e30..2658cf49f7b76d29ddd7277335ba23fa31828f12 100644 (file)
@@ -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);