mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 14:41:35 +08:00
mavlink_messages.cpp: only warn once, when MAVLink log opening fails
This happens for example if no SD card is present.
This commit is contained in:
@@ -459,6 +459,7 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
PX4_WARN("Failed to open MAVLink log: %s", log_file_path);
|
PX4_WARN("Failed to open MAVLink log: %s", log_file_path);
|
||||||
|
_write_err_count = write_err_threshold; //only try to open the file once
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user