AP_HAL: added in_expected_delay()

allows for error message suppression when delays are expected
This commit is contained in:
Andrew Tridgell 2020-03-11 12:20:04 +11:00
parent 06b62107c7
commit 58b4b523fd
1 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,12 @@ public:
*/
virtual void expect_delay_ms(uint32_t ms) { }
/*
return true if we are in a period of expected delay. This can be
used to suppress error messages
*/
virtual bool in_expected_delay(void) const { return false; }
/*
end the priority boost from delay_microseconds_boost()
*/