forked from Archive/PX4-Autopilot
Missed another < 0 check
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
b990d9fa7e
commit
180c8b0cb0
|
@ -481,7 +481,7 @@ ACCELSIM::init()
|
|||
_mag->_mag_topic = orb_advertise_multi(ORB_ID(sensor_mag), &mrp,
|
||||
&_mag->_mag_orb_class_instance, ORB_PRIO_LOW);
|
||||
|
||||
if (_mag->_mag_topic < 0) {
|
||||
if (_mag->_mag_topic == 0) {
|
||||
PX4_WARN("ADVERT ERR");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue