mirror of https://github.com/ArduPilot/ardupilot
Tracker: move init of DataFlash references into vehicle init
This makes it look like the other vehicle types
This commit is contained in:
parent
652292e5c0
commit
f130b4a580
|
@ -90,7 +90,6 @@ void Tracker::start_logging()
|
|||
if (g.log_bitmask != 0) {
|
||||
if (!logging_started) {
|
||||
logging_started = true;
|
||||
DataFlash.setVehicle_Startup_Log_Writer(FUNCTOR_BIND(&tracker, &Tracker::Log_Write_Vehicle_Startup_Messages, void));
|
||||
DataFlash.StartNewLog();
|
||||
}
|
||||
// enable writes
|
||||
|
|
|
@ -86,6 +86,9 @@ void Tracker::init_tracker()
|
|||
|
||||
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
|
||||
serial_manager.set_blocking_writes_all(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue