Tracker: move init of DataFlash references into vehicle init

This makes it look like the other vehicle types
This commit is contained in:
Peter Barker 2017-05-01 16:22:35 +10:00 committed by Francisco Ferreira
parent 652292e5c0
commit f130b4a580
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,6 @@ void Tracker::start_logging()
if (g.log_bitmask != 0) { if (g.log_bitmask != 0) {
if (!logging_started) { if (!logging_started) {
logging_started = true; logging_started = true;
DataFlash.setVehicle_Startup_Log_Writer(FUNCTOR_BIND(&tracker, &Tracker::Log_Write_Vehicle_Startup_Messages, void));
DataFlash.StartNewLog(); DataFlash.StartNewLog();
} }
// enable writes // enable writes

View File

@ -86,6 +86,9 @@ void Tracker::init_tracker()
init_barometer(true); init_barometer(true);
// initialise DataFlash library
DataFlash.setVehicle_Startup_Log_Writer(FUNCTOR_BIND(&tracker, &Tracker::Log_Write_Vehicle_Startup_Messages, void));
// set serial ports non-blocking // set serial ports non-blocking
serial_manager.set_blocking_writes_all(false); serial_manager.set_blocking_writes_all(false);