]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/tacan.cxx
Change from Dave Perry:
[flightgear.git] / src / Instrumentation / tacan.cxx
index 061a6bcfcac17de08a62e3b5f54a3b90244238b3..4a6818cc759482e84c33dd34dd6cd7ab500ed410 100755 (executable)
@@ -3,6 +3,10 @@
 //
 // This file is in the Public Domain and comes with no warranty.
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <simgear/compiler.h>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/math/sg_random.h>
@@ -371,7 +375,7 @@ TACAN::searchChannel (const string& _channel){
         frequency_khz = freq->get_freq();
         SG_LOG( SG_INSTR, SG_DEBUG, "freq output " << frequency_khz  );
         //check sanity
-        if (frequency_khz >9620 && frequency_khz <= 12130)
+        if (frequency_khz >=9620 && frequency_khz <= 12130)
             return frequency_khz/100;
     }
     return frequency_khz = 0;