Skip to content

Commit 857c347

Browse files
authored
Merge pull request #33 from sparkfun/update_svl_tools
SVL Speed Boost
2 parents 9e43a5a + 7e1909d commit 857c347

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

tools/artemis/artemis_svl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def main():
151151
print('Connecting over serial port {}...'.format(args.port), flush=True)
152152

153153
# Set a timeout
154-
global_timeout = 0.05 # tested as low as 0.03 on some machines - 50 ms works well, 30 ms works sometimes, this delay occurs between the USB-serial converter and when python can see it
154+
global_timeout = float(args.globaltimeout) # tested as low as 0.03 on some machines - 50 ms works well, 30 ms works sometimes, this delay occurs between the USB-serial converter and when python can see it
155155
verboseprint('Using Serial timeout: ' + str(global_timeout))
156156

157157
# Now open the port for bootloading
@@ -342,6 +342,8 @@ def main():
342342
parser.add_argument("-t", "--tries", default=20, help="How many baud rate negotiation messages to send before failing",
343343
type=int)
344344

345+
parser.add_argument("-g", "--globaltimeout", default=0.05, help="Timeout between baud rate negotiation messages, in seconds (default 0.05)")
346+
345347
if len(sys.argv) < 2:
346348
print("No port selected. Detected Serial Ports:")
347349
devices = list_ports.comports()

tools/artemis/linux/artemis_svl

1.32 KB
Binary file not shown.

tools/artemis/macosx/artemis_svl

3.98 KB
Binary file not shown.

tools/artemis/windows/artemis_svl.exe

-2.38 KB
Binary file not shown.

0 commit comments

Comments
 (0)