From 71988b49a4be3a2c888f990e5a4d513de9510d7a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 31 Jul 2018 15:57:24 +1000 Subject: [PATCH] AP_RSSI: allow override of RSSI pin --- libraries/AP_RSSI/AP_RSSI.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libraries/AP_RSSI/AP_RSSI.cpp b/libraries/AP_RSSI/AP_RSSI.cpp index 47c9c485d6..5b8941f38c 100644 --- a/libraries/AP_RSSI/AP_RSSI.cpp +++ b/libraries/AP_RSSI/AP_RSSI.cpp @@ -27,9 +27,17 @@ extern const AP_HAL::HAL& hal; #define BOARD_RSSI_DEFAULT 1 #define BOARD_RSSI_ANA_PIN 11 #define BOARD_RSSI_ANA_PIN_HIGH 3.3f -#else +#endif + +#ifndef BOARD_RSSI_DEFAULT #define BOARD_RSSI_DEFAULT 0 +#endif + +#ifndef BOARD_RSSI_ANA_PIN #define BOARD_RSSI_ANA_PIN 0 +#endif + +#ifndef BOARD_RSSI_ANA_PIN_HIGH #define BOARD_RSSI_ANA_PIN_HIGH 5.0f #endif