Update orb advert type in mavlink, by @boosfelm

This commit is contained in:
Lorenz Meier 2015-06-29 15:47:19 +02:00
parent a97931bf20
commit 6638729af7
1 changed files with 1 additions and 1 deletions

View File

@ -1009,7 +1009,7 @@ MavlinkReceiver::handle_message_rc_channels_override(mavlink_message_t *msg)
rc.values[6] = man.chan7_raw;
rc.values[7] = man.chan8_raw;
if (_rc_pub <= 0) {
if (_rc_pub == nullptr) {
_rc_pub = orb_advertise(ORB_ID(input_rc), &rc);
} else {