mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 04:00:35 +08:00
Missed another < 0 check
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Lorenz Meier
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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user