From 65576b7895c354a5f12eeb98d148d32f9f092a90 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 7 Nov 2022 21:56:00 -0300 Subject: [PATCH] AP_HAL_Linux: add LEAK probe pin to Navigator gpio whitelist --- libraries/AP_HAL_Linux/GPIO_Navigator.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/GPIO_Navigator.h b/libraries/AP_HAL_Linux/GPIO_Navigator.h index 508024b9e1..56ba66051f 100644 --- a/libraries/AP_HAL_Linux/GPIO_Navigator.h +++ b/libraries/AP_HAL_Linux/GPIO_Navigator.h @@ -14,7 +14,10 @@ public: uint8_t read(uint8_t pin) override; void write(uint8_t pin, uint8_t value) override; private: - uint8_t AllowedGPIOS[1] = {RPI_GPIO_<26>()}; + uint8_t AllowedGPIOS[2] = { + RPI_GPIO_<26>(), // Aux Output for PWMs + RPI_GPIO_<27>() // Leak detection + }; bool pinAllowed(uint8_t pin); };