mavlink_log_handler: handle _next_entry (#21784)

This commit is contained in:
Harrison Gieraltowski 2023-07-03 04:30:07 -04:00 committed by GitHub
parent bfa72a1bee
commit 018ec97c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

0
_last_entry Normal file
View File

View File

@ -275,7 +275,7 @@ MavlinkLogHandler::_log_send_listing()
mavlink_msg_log_entry_send_struct(_mavlink->get_channel(), &response); mavlink_msg_log_entry_send_struct(_mavlink->get_channel(), &response);
//-- If we're done listing, flag it. //-- If we're done listing, flag it.
if (_next_entry == _last_entry) { if (_next_entry >= _last_entry) {
_current_status = LogHandlerState::Idle; _current_status = LogHandlerState::Idle;
} else { } else {