Skip to content

Commit 60e38ca

Browse files
committed
fixed crystal validity check
1 parent 887e4cb commit 60e38ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mcp2515/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def _get_tx_buffer(self):
665665

666666
def _set_baud_rate(self):
667667
# ******* set baud rate ***********
668-
if self._crystal_freq not in _BAUD_RATES.keys():
668+
if self._crystal_freq not in _BAUD_RATES:
669669
raise ValueError(
670670
f"Incorrect crystal frequency - must be one of: {tuple(_BAUD_RATES.keys())}"
671671
)

0 commit comments

Comments
 (0)