]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/ExternalNet.cxx
Updates to the electrical system model. "Juice" is now propogated through
[flightgear.git] / src / FDM / ExternalNet.cxx
index 7abe27de3b84a7f996d291588294564baabe99d1..949af690bd8d4106026c215fd8a570ac87c04f07 100644 (file)
@@ -311,7 +311,7 @@ FGExternalNet::FGExternalNet( double dt, string host, int dop, int dip, int cp )
     data_server.setBlocking( false );
 
     // allowed to read from a broadcast addr
-    data_server.setBroadcast( true );
+    // data_server.setBroadcast( true );
 
     // if we bind to fdm_host = "" then we accept messages from
     // anyone.
@@ -384,15 +384,15 @@ void FGExternalNet::update( double dt ) {
     length = sizeof(ctrls);
     global2raw( &ctrls );
     if ( data_client.send( (char *)(& ctrls), length, 0 ) != length ) {
-       SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+       SG_LOG( SG_IO, SG_DEBUG, "Error writing data." );
     } else {
-       SG_LOG( SG_IO, SG_ALERT, "wrote control data." );
+       SG_LOG( SG_IO, SG_DEBUG, "wrote control data." );
     }
 
     // Read next set of FDM data (blocking enabled to maintain 'sync')
     length = sizeof(fdm);
     while ( (result = data_server.recv( (char *)(& fdm), length, 0)) >= 0 ) {
-       SG_LOG( SG_IO, SG_INFO, "Success reading data." );
+       SG_LOG( SG_IO, SG_DEBUG, "Success reading data." );
        net2global( &fdm );
     }
 }