Fix code style

This commit is contained in:
Michael Schaeuble 2016-07-10 23:14:32 +02:00 committed by Julian Oes
parent 28de6d2cbd
commit 2197bf518d
1 changed files with 8 additions and 8 deletions

View File

@ -533,18 +533,18 @@ int DfMPU6050Wrapper::_publish(struct imu_sensor_data &data)
if (!(m_pub_blocked)) { if (!(m_pub_blocked)) {
if (_gyro_topic == nullptr) { if (_gyro_topic == nullptr) {
_gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &gyro_report, _gyro_topic = orb_advertise_multi(ORB_ID(sensor_gyro), &gyro_report,
&_gyro_orb_class_instance, ORB_PRIO_DEFAULT); &_gyro_orb_class_instance, ORB_PRIO_DEFAULT);
}
else { } else {
orb_publish(ORB_ID(sensor_gyro), _gyro_topic, &gyro_report); orb_publish(ORB_ID(sensor_gyro), _gyro_topic, &gyro_report);
} }
if (_accel_topic == nullptr) { if (_accel_topic == nullptr) {
_accel_topic = orb_advertise_multi(ORB_ID(sensor_accel), &accel_report, _accel_topic = orb_advertise_multi(ORB_ID(sensor_accel), &accel_report,
&_accel_orb_class_instance, ORB_PRIO_DEFAULT); &_accel_orb_class_instance, ORB_PRIO_DEFAULT);
}
else { } else {
orb_publish(ORB_ID(sensor_accel), _accel_topic, &accel_report); orb_publish(ORB_ID(sensor_accel), _accel_topic, &accel_report);
} }