From 37abc1b02f037dbda9d6390277f23bf60765e865 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 27 Jun 2017 18:13:15 +1000 Subject: [PATCH] Copter: check dataflash to see if we should log backend gps messages --- ArduCopter/system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduCopter/system.cpp b/ArduCopter/system.cpp index e9de9d4335..c8cc390ae7 100644 --- a/ArduCopter/system.cpp +++ b/ArduCopter/system.cpp @@ -205,7 +205,8 @@ void Copter::init_ardupilot() ahrs.set_beacon(&g2.beacon); // Do GPS init - gps.init(&DataFlash, serial_manager); + gps.set_log_gps_bit(MASK_LOG_GPS); + gps.init(serial_manager); init_compass();