AP_UAVCAN: ensure that we publish allocation messages in STD CAN format

This commit is contained in:
bugobliterator 2022-02-16 11:36:49 +05:30 committed by Andrew Tridgell
parent 47e710c21a
commit 3569435531

View File

@ -276,7 +276,7 @@ bool AP_UAVCAN_DNA_Server::init(AP_UAVCAN *ap_uavcan)
server_state = HEALTHY;
//Setup publisher for this driver index
allocation_pub[driver_index] = new uavcan::Publisher<uavcan::protocol::dynamic_node_id::Allocation>(*_node);
allocation_pub[driver_index] = new uavcan::Publisher<uavcan::protocol::dynamic_node_id::Allocation>(*_node, true);
if (allocation_pub[driver_index] == nullptr) {
AP_BoardConfig::allocation_error("AP_UAVCAN_DNA: allocation_pub[%d]", driver_index);
}