More tab fixes

This commit is contained in:
Don Gagne 2014-06-29 13:55:55 -07:00
parent 33c20e15a2
commit 2448e2adbc
5 changed files with 14 additions and 14 deletions

View File

@ -183,8 +183,8 @@ float RoboClaw::getMotorPosition(e_motor motor)
} else if (motor == MOTOR_2) {
return _motor2Position;
} else {
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
return NAN;
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
return NAN;
}
}
@ -195,8 +195,8 @@ float RoboClaw::getMotorSpeed(e_motor motor)
} else if (motor == MOTOR_2) {
return _motor2Speed;
} else {
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
return NAN;
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
return NAN;
}
}

View File

@ -603,7 +603,7 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
// XXX TODO
}
return true;
return true;
}
int commander_thread_main(int argc, char *argv[])

View File

@ -181,13 +181,13 @@ int gpio_led_main(int argc, char *argv[])
} else {
gpio_led_started = true;
warnx("start, using pin: %s", pin_name);
exit(0);
exit(0);
}
} else if (!strcmp(argv[1], "stop")) {
if (gpio_led_started) {
gpio_led_started = false;
warnx("stop");
exit(0);
exit(0);
} else {
errx(1, "not running");
}

View File

@ -193,12 +193,12 @@ ramtron_attach(void)
errx(1, "failed to initialize mtd driver");
int ret = mtd_dev->ioctl(mtd_dev, MTDIOC_SETSPEED, (unsigned long)10*1000*1000);
if (ret != OK) {
// FIXME: From the previous warnx call, it looked like this should have been an errx instead. Tried
// that but setting the bug speed does fail all the time. Which was then exiting and the board would
// not run correctly. So changed to warnx.
warnx("failed to set bus speed");
}
if (ret != OK) {
// FIXME: From the previous warnx call, it looked like this should have been an errx instead. Tried
// that but setting the bug speed does fail all the time. Which was then exiting and the board would
// not run correctly. So changed to warnx.
warnx("failed to set bus speed");
}
attached = true;
}

View File

@ -372,7 +372,7 @@ int test_mixer(int argc, char *argv[])
}
warnx("SUCCESS: No errors in mixer test");
return 0;
return 0;
}
static int