Browse Source

AP_HAL: added in_expected_delay()

allows for error message suppression when delays are expected
c415-sdk
Andrew Tridgell 5 years ago
parent
commit
58b4b523fd
  1. 6
      libraries/AP_HAL/Scheduler.h

6
libraries/AP_HAL/Scheduler.h

@ -37,6 +37,12 @@ public: @@ -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()
*/

Loading…
Cancel
Save