mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Copter: move memcheck_init() earlier in setup
This commit is contained in:
parent
cf04935438
commit
2e57720444
@ -907,6 +907,9 @@ void get_throttle_althold(int32_t target_alt, int16_t min_climb_rate, int16_t ma
|
||||
AP_Param param_loader(var_info, WP_START_BYTE);
|
||||
|
||||
void setup() {
|
||||
// this needs to be the first call, as it fills memory with
|
||||
// sentinel values
|
||||
memcheck_init();
|
||||
cliSerial = hal.console;
|
||||
|
||||
// Load the default values of variables listed in var_info[]s
|
||||
@ -931,7 +934,6 @@ void setup() {
|
||||
batt_curr_analog_source = hal.analogin->channel(g.battery_curr_pin);
|
||||
board_vcc_analog_source = hal.analogin->channel(ANALOG_INPUT_BOARD_VCC);
|
||||
|
||||
memcheck_init();
|
||||
init_ardupilot();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user