forked from Archive/PX4-Autopilot
Update orb advert type in mavlink, by @boosfelm
This commit is contained in:
parent
a97931bf20
commit
6638729af7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue