diff --git a/libraries/AP_HAL/UARTDriver.h b/libraries/AP_HAL/UARTDriver.h index 91134d48288..4f41822e41a 100644 --- a/libraries/AP_HAL/UARTDriver.h +++ b/libraries/AP_HAL/UARTDriver.h @@ -220,6 +220,9 @@ public: return lock_write_key != 0; } + // check that the current thread owns the uart making certain operations possible + virtual bool is_owned_by_current_thread() const { return true; } + protected: // key for a locked port uint32_t lock_write_key;