forked from Archive/PX4-Autopilot
BUGFIX hardfault FMUv5 List was used before being initalized.
_uavcan_open_request_list was accessed before it was initalized.
This commit is contained in:
parent
55728ab129
commit
8aa1d4d68d
|
@ -422,7 +422,8 @@ MavlinkParametersManager::send_uavcan()
|
|||
orb_copy(ORB_ID(uavcan_parameter_value), _uavcan_parameter_value_sub, &value);
|
||||
|
||||
// Check if we received a matching parameter, drop it from the list and request the next
|
||||
if (value.param_index == _uavcan_open_request_list->req.param_index
|
||||
if (_uavcan_open_request_list != nullptr
|
||||
&& value.param_index == _uavcan_open_request_list->req.param_index
|
||||
&& value.node_id == _uavcan_open_request_list->req.node_id) {
|
||||
dequeue_uavcan_request();
|
||||
request_next_uavcan_parameter();
|
||||
|
|
Loading…
Reference in New Issue