Skip to content

Commit

Permalink
Tools: uploader.py: set write_timeout
Browse files Browse the repository at this point in the history
This is needed to prevent Windows from hanging when trying to write to
"Standard Serial over Bluetooth" ports.
  • Loading branch information
robertlong13 authored and magicrub committed Jan 9, 2024
1 parent 511659e commit eb10b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/scripts/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __init__(self,
self.force_erase = force_erase

# open the port, keep the default timeout short so we can poll quickly
self.port = serial.Serial(portname, baudrate_bootloader, timeout=2.0)
self.port = serial.Serial(portname, baudrate_bootloader, timeout=2.0, write_timeout=2.0)
self.baudrate_bootloader = baudrate_bootloader
if baudrate_bootloader_flash is not None:
self.baudrate_bootloader_flash = baudrate_bootloader_flash
Expand Down

0 comments on commit eb10b81

Please sign in to comment.