Merge pull request #235 from OK2MOP/master

This commit is contained in:
Peter Buchegger 2023-01-10 21:41:05 +01:00 committed by GitHub
commit 01674657b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = "";