From 97b51a4bcb45b3088f78be5ff06e4c3b67c063bc Mon Sep 17 00:00:00 2001 From: Vladislav Zakharov Date: Mon, 29 Jun 2015 16:19:42 +0300 Subject: [PATCH] AP_HAL: Added deinit() method to RCInput Add a deinit() counterpart. This is needed for some ports that require some deinitializtion logic. The default implementation is empty. I'm not sure whether we need to inforce it for all. --- libraries/AP_HAL/RCInput.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_HAL/RCInput.h b/libraries/AP_HAL/RCInput.h index 5c34461948..b4a2b61130 100644 --- a/libraries/AP_HAL/RCInput.h +++ b/libraries/AP_HAL/RCInput.h @@ -16,6 +16,7 @@ public: * in the C++ type system.) */ virtual void init(void* implspecific) = 0; + virtual void deinit() {}; /** * Return true if there has been new input since the last read()