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:
Ben Nuttall
2016-08-31 15:04:07 +01:00
committed by GitHub
parent f55a8f1cc8
commit 89062ed4c2

View File

@@ -408,8 +408,8 @@ def SPI(**spi_args):
else:
try:
hardware_spi_args = {
port: 0,
device: {8: 0, 7: 1}[spi_args['select_pin']],
'port': 0,
'device': {8: 0, 7: 1}[spi_args['select_pin']],
}
if shared:
return SharedSPIHardwareInterface(**hardware_spi_args)