Skip to content
Snippets Groups Projects
Commit 8aa1d4d6 authored by David Sidrane's avatar David Sidrane
Browse files

BUGFIX hardfault FMUv5 List was used before being initalized.

  _uavcan_open_request_list was accessed before it was initalized.
parent 55728ab1
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment