mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
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.
This commit is contained in:
@@ -408,8 +408,8 @@ def SPI(**spi_args):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
hardware_spi_args = {
|
hardware_spi_args = {
|
||||||
port: 0,
|
'port': 0,
|
||||||
device: {8: 0, 7: 1}[spi_args['select_pin']],
|
'device': {8: 0, 7: 1}[spi_args['select_pin']],
|
||||||
}
|
}
|
||||||
if shared:
|
if shared:
|
||||||
return SharedSPIHardwareInterface(**hardware_spi_args)
|
return SharedSPIHardwareInterface(**hardware_spi_args)
|
||||||
|
|||||||
Reference in New Issue
Block a user