From 732cd0e130cc446a1e7fb7808700475e11f61568 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Jun 2014 09:27:15 +1000 Subject: [PATCH] AP_Relay: fix for HAL_GPIO_* --- libraries/AP_Relay/AP_Relay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Relay/AP_Relay.cpp b/libraries/AP_Relay/AP_Relay.cpp index f5540f7321..dcbd6ec9b9 100644 --- a/libraries/AP_Relay/AP_Relay.cpp +++ b/libraries/AP_Relay/AP_Relay.cpp @@ -80,7 +80,7 @@ void AP_Relay::init() void AP_Relay::on(uint8_t relay) { if (relay < AP_RELAY_NUM_RELAYS && _pin[relay] != -1) { - hal.gpio->pinMode(_pin[relay], GPIO_OUTPUT); + hal.gpio->pinMode(_pin[relay], HAL_GPIO_OUTPUT); hal.gpio->write(_pin[relay], 1); } } @@ -89,7 +89,7 @@ void AP_Relay::on(uint8_t relay) void AP_Relay::off(uint8_t relay) { if (relay < AP_RELAY_NUM_RELAYS && _pin[relay] != -1) { - hal.gpio->pinMode(_pin[relay], GPIO_OUTPUT); + hal.gpio->pinMode(_pin[relay], HAL_GPIO_OUTPUT); hal.gpio->write(_pin[relay], 0); } }