Fix power limitations on 20dBm TX iGate

pull/235/head
Pavel Moravec 2023-01-10 21:14:48 +01:00
rodzic d7cd72a567
commit 5fb31d8b07
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -100,6 +100,10 @@ bool RadiolibTask::setup(System &system) {
}
}
if (config.power > 17 && config.tx_enable) {
radio->setCurrentLimit(140);
}
preambleDurationMilliSec = ((uint64_t)(preambleLength + 4) << (config.spreadingFactor + 10 /* to milli-sec */)) / config.signalBandwidth;
_stateInfo = "";