Skip to content

Commit 89062ed

Browse files
authored
Add quotes to dict keys
This is a bug introduced in v1.3.0. Currently, hardware SPI is not possible because the NameError is caught on 418 and incorrectly dealt with. The plan is to do a point release v1.3.1 to address this.
1 parent f55a8f1 commit 89062ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gpiozero/spi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ def SPI(**spi_args):
408408
else:
409409
try:
410410
hardware_spi_args = {
411-
port: 0,
412-
device: {8: 0, 7: 1}[spi_args['select_pin']],
411+
'port': 0,
412+
'device': {8: 0, 7: 1}[spi_args['select_pin']],
413413
}
414414
if shared:
415415
return SharedSPIHardwareInterface(**hardware_spi_args)

0 commit comments

Comments
 (0)