From 26d5d3c38523c649379d3d29bcd38d075e4f0fc5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Dec 2011 23:29:22 +1100 Subject: [PATCH] fixed HIL build --- ArduPlane/system.pde | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/system.pde b/ArduPlane/system.pde index 1e98d005b6..de355f3061 100644 --- a/ArduPlane/system.pde +++ b/ArduPlane/system.pde @@ -178,10 +178,12 @@ static void init_ardupilot() mavlink_system.sysid = g.sysid_this_mav; +#if LOGGING_ENABLED == ENABLED if (need_log_erase) { gcs_send_text_P(SEVERITY_LOW, PSTR("ERASING LOGS")); do_erase_logs(mavlink_delay); } +#endif #if HIL_MODE != HIL_MODE_ATTITUDE