mirror of https://github.com/ArduPilot/ardupilot
AP_SmartRTL: fixup compile error
fix typo introduced by me attempting a minor fixup before merging
This commit is contained in:
parent
fd0a8b72b4
commit
db7836ad48
|
@ -352,9 +352,10 @@ void AP_SmartRTL::run_background_cleanup()
|
||||||
routine_cleanup(path_points_count, path_points_completed_limit);
|
routine_cleanup(path_points_count, path_points_completed_limit);
|
||||||
|
|
||||||
// warn if buffer is about to be filled
|
// 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!");
|
gcs().send_text(MAV_SEVERITY_INFO, "SmartRTL Low on space!");
|
||||||
_last_low_space_notify_ms = now;
|
_last_low_space_notify_ms = now_ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue