Browse Source

AP_Relay: allow relay object in SITL

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
f7939ad179
  1. 2
      libraries/AP_Relay/AP_Relay.cpp

2
libraries/AP_Relay/AP_Relay.cpp

@ -14,7 +14,7 @@ extern const AP_HAL::HAL& hal;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 #if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#define RELAY_PIN 47 #define RELAY_PIN 47
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM2 #elif CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#define RELAY_PIN 26 #define RELAY_PIN 26
#else #else
#error "no RELAY_PIN defined for this board" #error "no RELAY_PIN defined for this board"

Loading…
Cancel
Save