From 018ec97c41f65e84629ef112ed9fff7a7678575c Mon Sep 17 00:00:00 2001 From: Harrison Gieraltowski Date: Mon, 3 Jul 2023 04:30:07 -0400 Subject: [PATCH] mavlink_log_handler: handle _next_entry (#21784) --- _last_entry | 0 src/modules/mavlink/mavlink_log_handler.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 _last_entry diff --git a/_last_entry b/_last_entry new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/modules/mavlink/mavlink_log_handler.cpp b/src/modules/mavlink/mavlink_log_handler.cpp index 8ae5061b3f..d4ed61d428 100644 --- a/src/modules/mavlink/mavlink_log_handler.cpp +++ b/src/modules/mavlink/mavlink_log_handler.cpp @@ -275,7 +275,7 @@ MavlinkLogHandler::_log_send_listing() mavlink_msg_log_entry_send_struct(_mavlink->get_channel(), &response); //-- If we're done listing, flag it. - if (_next_entry == _last_entry) { + if (_next_entry >= _last_entry) { _current_status = LogHandlerState::Idle; } else {