mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 01:28:29 -04:00
AP_HAL_SITL: fix segv in examples
This commit is contained in:
parent
995cda6363
commit
866405c7df
@ -429,8 +429,10 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AP::sitl()) {
|
||||||
// Set SITL start time.
|
// Set SITL start time.
|
||||||
AP::sitl()->start_time_UTC = start_time_UTC;
|
AP::sitl()->start_time_UTC = start_time_UTC;
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stdout, "Starting sketch '%s'\n", SKETCH);
|
fprintf(stdout, "Starting sketch '%s'\n", SKETCH);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user