 uint16_t rssi_max_a=0;
 uint16_t rssi_setup_min_a=0;
 uint16_t rssi_setup_max_a=0;
+#ifdef USE_DIVERSITY
 uint16_t rssi_min_b=0;
 uint16_t rssi_max_b=0;
 uint16_t rssi_setup_min_b=0;
 uint16_t rssi_setup_max_b=0;
+#endif
 uint16_t rssi_seek_found=0;
 uint16_t rssi_setup_run=0;
 

    //Receiver Setup
    pinMode(receiverA_led,OUTPUT);
    digitalWrite(buzzer, HIGH);
    pinMode(receiverB_led,OUTPUT);
    digitalWrite(receiverA_led, LOW);
#ifdef DEBUG
    Serial.begin(115200);
    Serial.println(F("START:"));


// Feature Togglels
//#define DEBUG
#define USE_DIVERSITY


#define spiDataPin 10
#define slaveSelectPin 11
#define spiClockPin 12

// Receiver PINS
#define receiverA_led A0
#define rssiPinA A6

#ifdef USE_DIVERSITY
// Diversity
#define receiverB_led A1
#define rssiPinB A7
#define useReceiverAuto 0
#define useReceiverA 1
#define useReceiverB 2
// rssi strenth should be 2% greater than other receiver before switch.
// this pervents flicker when rssi are close.
#define DIVERSITY_CUTOVER 2
#endif

// this two are minimum required
#define buttonSeek 2
