diff --git a/src/main.cpp b/src/main.cpp index faef710..623aec0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,7 +35,7 @@ void setup() { memcpy(ChanSet.name, MESHTASTIC_NAME, 12); //myRegion = ®ions[REGION]; ChanSet.channel_num = hash( MESHTASTIC_NAME ) % regions[REGION].numChannels; // see config.h - ChanSet.tx_power = (regions[REGION].powerLimit == 0) ? TX_MAX_POWER : MAX(regions[REGION].powerLimit, TX_MAX_POWER) ; + ChanSet.tx_power = (regions[REGION].powerLimit == 0) ? TX_MAX_POWER : MIN(regions[REGION].powerLimit, TX_MAX_POWER) ; ChanSet.psk = MESHTASTIC_PSK; /* FYI: "bandwidth":