Skip to content

Commit e330bd6

Browse files
committed
Format with Black
1 parent afb35af commit e330bd6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

adafruit_rfm9x.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,15 @@
1212
1313
* Author(s): Tony DiCola, Jerry Needell
1414
"""
15-
import time
1615
import random
17-
from micropython import const
18-
16+
import time
1917

2018
import adafruit_bus_device.spi_device as spidev
21-
19+
from micropython import const
2220

2321
__version__ = "0.0.0-auto.0"
2422
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RFM9x.git"
2523

26-
2724
# Internal constants:
2825
# Register names (FSK Mode even though we use LoRa instead, from table 85)
2926
_RH_RF95_REG_00_FIFO = const(0x00)
@@ -504,8 +501,8 @@ def snr(self):
504501
# SNR(dB) = PacketSnr [twos complement] / 4
505502
snr_byte = self._read_u8(_RH_RF95_REG_19_PKT_SNR_VALUE)
506503
if snr_byte > 127:
507-
snr_byte = (256-snr_byte) * -1
508-
return snr_byte/4
504+
snr_byte = (256 - snr_byte) * -1
505+
return snr_byte / 4
509506

510507
@property
511508
def signal_bandwidth(self):

0 commit comments

Comments
 (0)