BUGFIX hardfault FMUv5 List was used before being initalized.

_uavcan_open_request_list was accessed before it was initalized.
This commit is contained in:
David Sidrane 2018-06-12 09:38:01 -10:00
parent 55728ab129
commit 8aa1d4d68d
1 changed files with 2 additions and 1 deletions

View File

@ -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();