Update main.cpp
This commit is contained in:
parent
52c96ae949
commit
2fd23157e5
|
@ -35,7 +35,7 @@ void setup() {
|
||||||
memcpy(ChanSet.name, MESHTASTIC_NAME, 12);
|
memcpy(ChanSet.name, MESHTASTIC_NAME, 12);
|
||||||
//myRegion = ®ions[REGION];
|
//myRegion = ®ions[REGION];
|
||||||
ChanSet.channel_num = hash( MESHTASTIC_NAME ) % regions[REGION].numChannels; // see config.h
|
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;
|
ChanSet.psk = MESHTASTIC_PSK;
|
||||||
/* FYI:
|
/* FYI:
|
||||||
"bandwidth":
|
"bandwidth":
|
||||||
|
|
Loading…
Reference in New Issue