diff --git a/libraries/AP_HAL/GPIO.h b/libraries/AP_HAL/GPIO.h index 04a0402c8b..c9f7caea79 100644 --- a/libraries/AP_HAL/GPIO.h +++ b/libraries/AP_HAL/GPIO.h @@ -53,6 +53,7 @@ public: virtual uint8_t read(uint8_t pin) = 0; virtual void write(uint8_t pin, uint8_t value) = 0; virtual void toggle(uint8_t pin) = 0; + virtual bool valid_pin(uint8_t pin) const { return true; } /* Alternative interface: */ virtual AP_HAL::DigitalSource* channel(uint16_t n) = 0;