mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 06:43:34 +08:00
mavlink: generate new log list for request start index 0
Instead of interpret a request for "more logs than currently exists" as a new request, use a request for index 0, which is more likely to be the first request.
This commit is contained in:
@@ -146,7 +146,7 @@ MavlinkLogHandler::_log_request_list(const mavlink_message_t *msg)
|
||||
//-- Check for re-requests (data loss) or new request
|
||||
if (_current_status != LogHandlerState::Inactive) {
|
||||
//-- Is this a new request?
|
||||
if ((request.end - request.start) > _log_count) {
|
||||
if (request.start == 0) {
|
||||
_current_status = LogHandlerState::Inactive;
|
||||
_close_and_unlink_files();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user