GCS_MAVLink: log parameter changes to DataFlash

this means param notifies also get logged in the DF log
This commit is contained in:
Andrew Tridgell 2016-05-08 19:12:09 +10:00
parent 51877a20d6
commit 2a2abb8be6
1 changed files with 5 additions and 0 deletions

View File

@ -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