]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/garmin.cxx
Change FGSteam into a proper subsystem rather than a collection of
[flightgear.git] / src / Network / garmin.cxx
index 5d53876a15db0322704318c8c6ba9d588fa23c6e..590a92fdaae5f736e8f1ccd46363f23a13693d4d 100644 (file)
 #include <simgear/debug/logstream.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/io/iochannel.hxx>
+#include <simgear/timing/sg_time.hxx>
 
 #include <FDM/flight.hxx>
 #include <Main/globals.hxx>
 
 #include "garmin.hxx"
 
+SG_USING_NAMESPACE(std);
 
 FGGarmin::FGGarmin() {
 }
@@ -324,7 +326,7 @@ bool FGGarmin::parse_message() {
            string alt_units = msg.substr(begin, end - begin);
            begin = end + 1;
 
-           if ( alt_units != "F" && alt_units != "f" ) {
+           if ( alt_units != (string)"F" && alt_units != (string)"f" ) {
                altitude *= SG_METER_TO_FEET;
            }