From 7f9ab9b7cb5cba3afc664b89deade3d64843119e Mon Sep 17 00:00:00 2001 From: korotkoves Date: Wed, 6 Apr 2016 11:27:22 +0300 Subject: [PATCH] fix code style for Travis --- src/modules/simulator/simulator_mavlink.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/simulator/simulator_mavlink.cpp b/src/modules/simulator/simulator_mavlink.cpp index f90ec7025c..87b773c651 100644 --- a/src/modules/simulator/simulator_mavlink.cpp +++ b/src/modules/simulator/simulator_mavlink.cpp @@ -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;