diff --git a/libraries/AP_Relay/AP_Relay.h b/libraries/AP_Relay/AP_Relay.h index 1d049ce764..c14e964c54 100644 --- a/libraries/AP_Relay/AP_Relay.h +++ b/libraries/AP_Relay/AP_Relay.h @@ -29,6 +29,9 @@ public: // setup the relay pin void init(); + // set relay to state + void set(uint8_t instance, bool value); + // activate the relay void on(uint8_t instance) { set(instance, true); } @@ -63,8 +66,6 @@ private: uint8_t _pin_states; uint8_t _last_logged_pin_states; uint32_t _last_log_ms; - - void set(uint8_t instance, bool value); }; namespace AP {