Browse Source

AP_Relay: fix pin used on APM2/SITL per Sando on drones-discuss

* My bad, thanks for the fix Sandro
master
Pat Hickey 12 years ago
parent
commit
1b7b096b05
  1. 2
      libraries/AP_Relay/AP_Relay.cpp

2
libraries/AP_Relay/AP_Relay.cpp

@ -15,7 +15,7 @@ extern const AP_HAL::HAL& hal; @@ -15,7 +15,7 @@ extern const AP_HAL::HAL& hal;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#define RELAY_PIN 47
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#define RELAY_PIN 26
#define RELAY_PIN 13
#else
// no relay for this board
#define RELAY_PIN -1

Loading…
Cancel
Save