mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: log parameter changes to DataFlash
this means param notifies also get logged in the DF log
This commit is contained in:
parent
51877a20d6
commit
2a2abb8be6
|
@ -1330,6 +1330,11 @@ void GCS_MAVLINK::send_parameter_value_all(const char *param_name, ap_var_type p
|
|||
}
|
||||
}
|
||||
}
|
||||
// also log to DataFlash
|
||||
DataFlash_Class *dataflash = DataFlash_Class::instance();
|
||||
if (dataflash != nullptr) {
|
||||
dataflash->Log_Write_Parameter(param_name, param_value);
|
||||
}
|
||||
}
|
||||
|
||||
// report battery2 state
|
||||
|
|
Loading…
Reference in New Issue