diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 025349c78f..b7bc3b4a03 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -1825,7 +1825,9 @@ mission_failed: mav_var_type(var_type), _count_parameters(), -1); // XXX we don't actually know what its index is... +#if LOGGING_ENABLED == ENABLED DataFlash.Log_Write_Parameter(key, vp->cast_to_float(var_type)); +#endif } break;