mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Sub: Update Notify with leak status
This commit is contained in:
parent
f3fa8403f8
commit
f4ad42c276
@ -77,6 +77,7 @@ void Sub::set_leak_status(bool status) {
|
||||
uint32_t tnow = AP_HAL::millis();
|
||||
|
||||
failsafe.leak = status;
|
||||
AP_Notify::flags.leak_detected = status;
|
||||
|
||||
if(failsafe.leak && tnow > failsafe.last_leak_warn_ms + 5000) {
|
||||
failsafe.last_leak_warn_ms = tnow;
|
||||
|
Loading…
Reference in New Issue
Block a user