Skip to content

Commit 9e44a93

Browse files
committed
Because pylint does not like multiple returns.
1 parent 4d25d76 commit 9e44a93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_rfm9x.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,10 @@ def signal_bandwidth(self):
557557
listed in RFM9x.bw_bins."""
558558
bw_id = (self._read_u8(_RH_RF95_REG_1D_MODEM_CONFIG1) & 0xf0) >> 4
559559
if bw_id >= len(self.bw_bins):
560-
return 500000
560+
current_bandwidth = 500000
561561
else:
562-
return self.bw_bins[bw_id]
562+
current_bandwidth = self.bw_bins[bw_id]
563+
return current_bandwidth
563564

564565
@signal_bandwidth.setter
565566
def signal_bandwidth(self, val):

0 commit comments

Comments
 (0)