Remove redundant checks for power of 0 (#2934)

* Add comment explaining necessity for second 0 check

Thank you @GUVWAF

* Update RF95Interface.cpp

* Update STM32WLE5JCInterface.cpp

* Update SX126xInterface.cpp

* Update SX128xInterface.cpp

* remove whitespace...

* Update SX128xInterface.cpp
This commit is contained in:
S5NC
2023-11-13 12:19:02 +00:00
committed by GitHub
parent 590b0bbff4
commit 0b9accc3b6
5 changed files with 5 additions and 11 deletions

View File

@@ -37,9 +37,6 @@ bool RF95Interface::init()
{
RadioLibInterface::init();
if (power == 0)
power = POWER_DEFAULT;
if (power > MAX_POWER) // This chip has lower power limits than some
power = MAX_POWER;