forked from Archive/PX4-Autopilot
On more fixup for orb_advert_t changed to void *
Reviewed all changes in pull request and made sure all cpp files check orb_advert_t types against nullptr and c files check against NULL. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
a452478ef9
commit
31923c3add
|
@ -119,7 +119,7 @@ void UavcanCDevSensorBridgeBase::publish(const int node_id, const void *report)
|
|||
channel->class_instance = class_instance;
|
||||
|
||||
channel->orb_advert = orb_advertise_multi(_orb_topic, report, &channel->orb_instance, ORB_PRIO_HIGH);
|
||||
if (channel->orb_advert == 0) {
|
||||
if (channel->orb_advert == nullptr) {
|
||||
log("ADVERTISE FAILED");
|
||||
(void)unregister_class_devname(_class_devname, class_instance);
|
||||
*channel = Channel();
|
||||
|
|
Loading…
Reference in New Issue