Rover: log mode in dataflash callback

this ensures every log has the initial mode
This commit is contained in:
Andrew Tridgell 2015-09-17 20:14:35 +10:00
parent d019f83bee
commit 42ed989da0

View File

@ -431,6 +431,7 @@ void Rover::Log_Write_Vehicle_Startup_Messages()
{
// only 200(?) bytes are guaranteed by DataFlash
Log_Write_Startup(TYPE_GROUNDSTART_MSG);
DataFlash.Log_Write_Mode(control_mode);
}
// start a new log