mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
spi_flash: fix hw bus
_try_send_command() expects a list of args, But receives a string. Fixes abc76ee963d4154dce0bd56f2fdb946d5065cc86. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
bfda326c24
commit
2e82fc4790
@ -1302,7 +1302,9 @@ class MCUConnection:
|
|||||||
else:
|
else:
|
||||||
if bus not in bus_enums:
|
if bus not in bus_enums:
|
||||||
raise SPIFlashError("Invalid SPI Bus: %s" % (bus,))
|
raise SPIFlashError("Invalid SPI Bus: %s" % (bus,))
|
||||||
bus_cmds = SPI_BUS_CMD % (SPI_OID, bus, SPI_MODE, SD_SPI_SPEED)
|
bus_cmds = [
|
||||||
|
SPI_BUS_CMD % (SPI_OID, bus, SPI_MODE, SD_SPI_SPEED),
|
||||||
|
]
|
||||||
if cs_pin not in pin_enums:
|
if cs_pin not in pin_enums:
|
||||||
raise SPIFlashError("Invalid CS Pin: %s" % (cs_pin,))
|
raise SPIFlashError("Invalid CS Pin: %s" % (cs_pin,))
|
||||||
cfg_cmds = [ALLOC_OIDS_CMD % (1,),]
|
cfg_cmds = [ALLOC_OIDS_CMD % (1,),]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user