fix flash script
This commit is contained in:
parent
f863b1b20b
commit
0e46446619
|
@ -90,13 +90,15 @@ def send_image(
|
||||||
|
|
||||||
if direct:
|
if direct:
|
||||||
BOOT_SEL_PIN.switch_to_input()
|
BOOT_SEL_PIN.switch_to_input()
|
||||||
RST_N_PIN.switch_to_output(value=True)
|
RST_N_PIN.switch_to_output()
|
||||||
|
RST_N_PIN.value=1
|
||||||
|
|
||||||
spi = setup_spi(max_spi_speed_mhz)
|
spi = setup_spi(max_spi_speed_mhz)
|
||||||
|
|
||||||
if direct:
|
if direct:
|
||||||
RST_N_PIN.value=False
|
RST_N_PIN.value=False
|
||||||
BOOT_SEL_PIN.switch_to_output(value=True)
|
BOOT_SEL_PIN.switch_to_output()
|
||||||
|
BOOT_SEL_PIN.value=True
|
||||||
RST_N_PIN.value=True
|
RST_N_PIN.value=True
|
||||||
else:
|
else:
|
||||||
set_boot_sel()
|
set_boot_sel()
|
||||||
|
|
Loading…
Reference in New Issue