mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-15 14:53:32 +08:00
DataFlash: fixed inconsistent state after interrupted log download
This commit is contained in:
committed by
Peter Barker
parent
dd93539098
commit
eb1ae22bb1
@@ -298,6 +298,7 @@ bool DataFlash_Class::handle_log_send_data()
|
||||
_log_data_remaining -= len;
|
||||
if (ret < MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN || _log_data_remaining == 0) {
|
||||
_log_sending = false;
|
||||
_in_log_download = false;
|
||||
_log_sending_link = nullptr;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user