Skip to content

Commit c4d9554

Browse files
committed
Add instructions to tools.flash_* regarding the bootloader button
1 parent ae791aa commit c4d9554

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

zigpy_znp/tools/flash_read.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ async def read_firmware(radio_path: str) -> bytearray:
3636
raise RuntimeError(
3737
"Did not receive a bootloader handshake response!"
3838
" Make sure your adapter has just been plugged in and"
39-
" nothing else has had a chance to communicate with it."
39+
" nothing else has had a chance to communicate with it. Alternatively, "
40+
" press the button furthest from the USB port. The LED should turn red."
4041
)
4142

4243
if handshake_rsp.Status != c.ubl.BootloaderStatus.SUCCESS:

zigpy_znp/tools/flash_write.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ async def write_firmware(firmware: bytes, radio_path: str):
9090
raise RuntimeError(
9191
"Did not receive a bootloader handshake response!"
9292
" Make sure your adapter has just been plugged in and"
93-
" nothing else has had a chance to communicate with it."
93+
" nothing else has had a chance to communicate with it. Alternatively, "
94+
" press the button furthest from the USB port. The LED should turn red."
9495
)
9596

9697
if handshake_rsp.Status != c.ubl.BootloaderStatus.SUCCESS:

0 commit comments

Comments
 (0)