mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 21:43:34 +08:00
Code formatter fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Julian Oes
parent
419f4c49ce
commit
791ec37f43
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user