File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 71
71
72
72
from micropython import const
73
73
74
- import adafruit_bus_device .spi_device
74
+ import adafruit_bus_device .spi_device as spi_device
75
75
76
76
77
77
__version__ = "0.0.0-auto.0"
@@ -585,13 +585,13 @@ def tx_power(self):
585
585
if pa0 and not pa1 and not pa2 :
586
586
# -18 to 13 dBm range
587
587
return - 18 + self .output_power
588
- elif not pa0 and pa1 and not pa2 :
588
+ if not pa0 and pa1 and not pa2 :
589
589
# -2 to 13 dBm range
590
590
return - 18 + self .output_power
591
- elif not pa0 and pa1 and pa2 and not self .high_power :
591
+ if not pa0 and pa1 and pa2 and not self .high_power :
592
592
# 2 to 17 dBm range
593
593
return - 14 + self .output_power
594
- elif not pa0 and pa1 and pa2 and self .high_power :
594
+ if not pa0 and pa1 and pa2 and self .high_power :
595
595
# 5 to 20 dBm range
596
596
return - 11 + self .output_power
597
597
raise RuntimeError ('Power amplifiers in unknown state!' )
You can’t perform that action at this time.
0 commit comments