mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-31 05:51:51 -06:00
spi_flash: fix hw bus
_try_send_command() expects a list of args,
But receives a string.
Fixes abc76ee963
.
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
bfda326c24
commit
2e82fc4790
1 changed files with 3 additions and 1 deletions
|
@ -1302,7 +1302,9 @@ class MCUConnection:
|
|||
else:
|
||||
if bus not in bus_enums:
|
||||
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:
|
||||
raise SPIFlashError("Invalid CS Pin: %s" % (cs_pin,))
|
||||
cfg_cmds = [ALLOC_OIDS_CMD % (1,),]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue