File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1212
1313* Author(s): Tony DiCola, Jerry Needell
1414"""
15- import time
1615import random
17- from micropython import const
18-
16+ import time
1917
2018import 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 ):
You can’t perform that action at this time.
0 commit comments