]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/ATC-Outputs.cxx
Logging: less verbose panel loading.
[flightgear.git] / src / Network / ATC-Outputs.cxx
index b5078a5810cd796ff581e6d53dde5a3e9f6ea24b..480ad7143b68b41d05340652627db97392a087ad 100644 (file)
@@ -173,6 +173,7 @@ static int ATCSetStepper( int fd, unsigned char channel,
 }
 
 
+#ifdef ATCFLIGHTSIM_HAVE_COMPASS
 // Read status of last stepper written to
 static unsigned char ATCReadStepper( int fd ) {
 #if defined( unix ) || defined( __CYGWIN__ )
@@ -195,6 +196,7 @@ static unsigned char ATCReadStepper( int fd ) {
     return 0;
 #endif
 }
+#endif
 
 
 // Turn a lamp on or off
@@ -464,22 +466,18 @@ bool FGATCOutput::do_analog_out() {
                 }
                 prop = child->getChild( "value-lo" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    x0 = prop->getDoubleValue();
                 }
                 prop = child->getChild( "meter-lo" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    y0 = prop->getDoubleValue();
                 }
                 prop = child->getChild( "value-hi" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    x1 = prop->getDoubleValue();
                 }
                 prop = child->getChild( "meter-hi" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    y1 = prop->getDoubleValue();
                 }
                // crunch linear interpolation formula