Fixed code style

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-11-16 14:01:39 -08:00
parent dbe3b0e52b
commit 3f20d78dfe
2 changed files with 9 additions and 5 deletions

View File

@ -555,13 +555,15 @@ void VDev::showDevices()
std::string devname;
unsigned int index = 0;
i = 0;
do {
// Each look increments index and returns -1 if end reached
i = DevMgr::getNextDeviceName(index, devname);
i = DevMgr::getNextDeviceName(index, devname);
if (i == 0) {
PX4_INFO(" %s", devname.c_str());
}
} while (i==0);
PX4_INFO(" %s", devname.c_str());
}
} while (i == 0);
}
void VDev::showTopics()

View File

@ -135,9 +135,11 @@ int Simulator::start(int argc, char *argv[])
// Update sensor data
_instance->pollForMAVLinkMessages(false);
#endif
} else if (argv[2][1] == 'p') {
// Update sensor data
_instance->pollForMAVLinkMessages(true);
} else {
_instance->initializeSensorData();
_instance->_initialized = true;
@ -170,7 +172,7 @@ extern "C" {
int ret = 0;
if (argc == 3 && strcmp(argv[1], "start") == 0) {
if (strcmp(argv[2], "-s") == 0 ||
if (strcmp(argv[2], "-s") == 0 ||
strcmp(argv[2], "-p") == 0 ||
strcmp(argv[2], "-t") == 0) {
if (g_sim_task >= 0) {