Tracker: handle knowledge of in_log_download in DataFlash

This commit is contained in:
Peter Barker 2017-06-19 10:22:28 +10:00 committed by Francisco Ferreira
parent 3a85d8ed39
commit c5df219a02
2 changed files with 0 additions and 19 deletions

View File

@ -835,23 +835,6 @@ mission_failed:
break;
}
case MAVLINK_MSG_ID_LOG_REQUEST_DATA:
tracker.in_log_download = true;
/* no break */
case MAVLINK_MSG_ID_LOG_ERASE:
/* no break */
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
if (!tracker.in_mavlink_delay) {
tracker.DataFlash.handle_mavlink_msg(*this, msg);
}
break;
case MAVLINK_MSG_ID_LOG_REQUEST_END:
tracker.in_log_download = false;
if (!tracker.in_mavlink_delay) {
tracker.DataFlash.handle_mavlink_msg(*this, msg);
}
break;
case MAVLINK_MSG_ID_SERIAL_CONTROL:
handle_serial_control(msg, tracker.gps);
break;

View File

@ -97,8 +97,6 @@ private:
bool usb_connected = false;
// has a log download started?
bool in_log_download = false;
DataFlash_Class DataFlash;
AP_GPS gps;