fix code style for Travis

This commit is contained in:
korotkoves
2016-04-06 11:27:22 +03:00
committed by Lorenz Meier
parent a8bbbcbff5
commit 7f9ab9b7cb

View File

@@ -474,8 +474,9 @@ void Simulator::pollForMAVLinkMessages(bool publish, int udp_port)
// udp socket data
struct sockaddr_in _myaddr;
if (udp_port < 1)
if (udp_port < 1) {
udp_port = UDP_PORT;
}
// try to setup udp socket for communcation with simulator
memset((char *)&_myaddr, 0, sizeof(_myaddr));
@@ -534,7 +535,7 @@ void Simulator::pollForMAVLinkMessages(bool publish, int udp_port)
// wait for first data from simulator and respond with first controls
// this is important for the UDP communication to work
int pret = -1;
PX4_INFO("Waiting for initial data on UDP port %i. Please start the flight simulator to proceed..",udp_port);
PX4_INFO("Waiting for initial data on UDP port %i. Please start the flight simulator to proceed..", udp_port);
uint64_t pstart_time = 0;