diff --git a/hal/transport/MyTransportRFM69.cpp b/hal/transport/MyTransportRFM69.cpp index 39c5562..31501bf 100644 --- a/hal/transport/MyTransportRFM69.cpp +++ b/hal/transport/MyTransportRFM69.cpp @@ -26,8 +26,10 @@ bool transportInit(void) { const bool result = RFM69_initialise(MY_RFM69_FREQUENCY); -#if !defined(MY_GATEWAY_FEATURE) && !defined(MY_RFM69_ATC_MODE_DISABLED) - // only enable ATC mode nodes +#if defined(MY_GATEWAY_FEATURE) || defined(MY_RFM69_ATC_MODE_DISABLED) + // ATC mode disabled on GW + RFM69_ATCmode(false); +#else RFM69_ATCmode(true, MY_RFM69_ATC_TARGET_RSSI_DBM); #endif