Skip to content

Commit 71e6777

Browse files
committed
AP_Logger: sanity check SIM_SPEEDUP for valid range
1 parent 8f749ad commit 71e6777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AP_Logger/AP_Logger_File.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ bool AP_Logger_File::io_thread_alive() const
10571057
// disk. Unfortunately these hardware devices do not obey our
10581058
// SITL speedup options, so we allow for it here.
10591059
SITL::SIM *sitl = AP::sitl();
1060-
if (sitl != nullptr) {
1060+
if (sitl != nullptr && sitl->speedup > 0) {
10611061
timeout_ms *= sitl->speedup;
10621062
}
10631063
#endif

0 commit comments

Comments
 (0)