diff --git a/include/Pins.h b/include/Pins.h index a45df93..3f49f1b 100644 --- a/include/Pins.h +++ b/include/Pins.h @@ -27,12 +27,9 @@ #define DIAG1_PIN_M2 2 // used for homing -//ADC Pin - obslete -// #define REFLECTION_PIN 15 - // Filter Bank #define FILTER_SWITCH_A 23 #define FILTER_SWITCH_B 22 // RF Switch -#define RF_SWITCH_PIN 34 +#define RF_SWITCH_PIN 15 diff --git a/src/ATM.ino b/src/ATM.ino index fefe4a5..b40a5f1 100644 --- a/src/ATM.ino +++ b/src/ATM.ino @@ -118,6 +118,10 @@ void setup() digitalWrite(FILTER_SWITCH_A, LOW); digitalWrite(FILTER_SWITCH_B, HIGH); + // RF Switch for switching between preamp and tuning and matching module + pinMode(RF_SWITCH_PIN, OUTPUT); + digitalWrite(RF_SWITCH_PIN, HIGH); + // ADAC module adac.enable_internal_Vref(); adac.set_DAC_max_2x_Vref(); @@ -127,10 +131,6 @@ void setup() adac.write_DAC(VT, 0.0); adac.configure_ADCs(ADCs); - - // RF Switch for switching between preamp and tuning and matching module - pinMode(RF_SWITCH_PIN, OUTPUT); - digitalWrite(RF_SWITCH_PIN, HIGH); } // Serial communication via USB.