Missed another < 0 check

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-05-23 01:00:02 +00:00 committed by Lorenz Meier
parent b990d9fa7e
commit 180c8b0cb0
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}