AP_SmartRTL: fixup compile error

fix typo introduced by me attempting a minor fixup before merging
This commit is contained in:
Randy Mackay 2019-10-04 10:01:49 +09:00 committed by Andrew Tridgell
parent 2deea7835f
commit 59f2b42bd9
1 changed files with 3 additions and 2 deletions

View File

@ -352,9 +352,10 @@ void AP_SmartRTL::run_background_cleanup()
routine_cleanup(path_points_count, path_points_completed_limit);
// warn if buffer is about to be filled
if ((path_points_count >0) && (path_points_count >= _path_points_max - 9) && (AP_HAL::millis() - _last_low_space_notify_ms > 10000)) {
uint32_t now_ms = AP_HAL::millis();
if ((path_points_count >0) && (path_points_count >= _path_points_max - 9) && (now_ms - _last_low_space_notify_ms > 10000)) {
gcs().send_text(MAV_SEVERITY_INFO, "SmartRTL Low on space!");
_last_low_space_notify_ms = now;
_last_low_space_notify_ms = now_ms;
}
}