mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_OSD: fixed valgrind errors with AP_Param::ParamToken
This commit is contained in:
parent
6c684538d3
commit
12b93e2922
@ -355,7 +355,7 @@ void AP_OSD_ParamScreen::modify_configured_parameter(uint8_t number, Event ev)
|
|||||||
} else {
|
} else {
|
||||||
// going backwards is somewhat convoluted as the param code is geared for going forward
|
// going backwards is somewhat convoluted as the param code is geared for going forward
|
||||||
ap_var_type type = AP_PARAM_NONE, prev_type = AP_PARAM_NONE, prev_prev_type = AP_PARAM_NONE;
|
ap_var_type type = AP_PARAM_NONE, prev_type = AP_PARAM_NONE, prev_prev_type = AP_PARAM_NONE;
|
||||||
AP_Param::ParamToken token, prev_token, prev_prev_token;
|
AP_Param::ParamToken token {}, prev_token, prev_prev_token;
|
||||||
|
|
||||||
for (param = AP_Param::first(&token, &type);
|
for (param = AP_Param::first(&token, &type);
|
||||||
param && (setting._current_token.key != token.key
|
param && (setting._current_token.key != token.key
|
||||||
|
Loading…
Reference in New Issue
Block a user