Skip to content

Commit 9397961

Browse files
committed
fix pylint complaints
1 parent 5cf19c1 commit 9397961

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_rfm69.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
from micropython import const
7373

74-
import adafruit_bus_device.spi_device
74+
import adafruit_bus_device.spi_device as spi_device
7575

7676

7777
__version__ = "0.0.0-auto.0"
@@ -585,13 +585,13 @@ def tx_power(self):
585585
if pa0 and not pa1 and not pa2:
586586
# -18 to 13 dBm range
587587
return -18 + self.output_power
588-
elif not pa0 and pa1 and not pa2:
588+
if not pa0 and pa1 and not pa2:
589589
# -2 to 13 dBm range
590590
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:
592592
# 2 to 17 dBm range
593593
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:
595595
# 5 to 20 dBm range
596596
return -11 + self.output_power
597597
raise RuntimeError('Power amplifiers in unknown state!')

0 commit comments

Comments
 (0)