Code formatter fixes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2016-02-19 16:59:46 +01:00
committed by Julian Oes
parent 419f4c49ce
commit 791ec37f43
8 changed files with 26 additions and 16 deletions
@@ -135,13 +135,15 @@ int DfImu::stop()
return 0;
}
int DfImu::_publish_callback(struct imu_sensor_data &data) {
int DfImu::_publish_callback(struct imu_sensor_data &data)
{
PX4_WARN("publish");
return 0;
};
namespace df_imu {
namespace df_imu
{
DfImu *g_dev = nullptr;
@@ -164,6 +166,7 @@ int stop()
}
int ret = g_dev->stop();
if (ret != 0) {
PX4_ERR("driver could not be stopped");
return ret;
@@ -174,8 +174,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
rv = pthread_attr_setstacksize(&attr, stack_size);
if (rv != 0)
{
if (rv != 0) {
PX4_ERR("pthread_attr_setstacksize returned error");
return (rv < 0) ? rv : -rv;
}