AP_HAL_Linux: add LEAK probe pin to Navigator gpio whitelist

This commit is contained in:
Willian Galvani 2022-11-07 21:56:00 -03:00
parent f88f1d2274
commit 65576b7895

View File

@ -14,7 +14,10 @@ public:
uint8_t read(uint8_t pin) override; uint8_t read(uint8_t pin) override;
void write(uint8_t pin, uint8_t value) override; void write(uint8_t pin, uint8_t value) override;
private: 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); bool pinAllowed(uint8_t pin);
}; };