POSIX baro SITL: Failed advert type is pointer, not number

This commit is contained in:
Lorenz Meier 2015-07-05 16:16:57 +02:00
parent 2314ebe4c2
commit fc9d6ac39b
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ BAROSIM::init()
_baro_topic = orb_advertise_multi(ORB_ID(sensor_baro), &brp,
&_orb_class_instance, (is_external()) ? ORB_PRIO_HIGH : ORB_PRIO_DEFAULT);
if (_baro_topic == (orb_advert_t)(-1)) {
if (_baro_topic == nullptr) {
PX4_ERR("failed to create sensor_baro publication");
}