Skip to content

Commit a68f790

Browse files
committed
Recognize /dev/cu in args.serial
Sketch upload to serial port fails on macos because the Arduino IDE uses the callout device "/dev/cu". Adding recognition of "/dev/cu" to uf2conv.py makes the sketch upload work.
1 parent 4cf6d90 commit a68f790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/uf2conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def error(msg):
311311
error("Family ID needs to be a number or one of: " + ", ".join(families.keys()))
312312

313313
if args.serial:
314-
if str(args.serial).startswith("/dev/tty") or str(args.serial).startswith("COM"):
314+
if str(args.serial).startswith("/dev/tty") or str(args.serial).startswith("COM") or str(args.serial).startswith("/dev/cu"):
315315
try:
316316
print("Resetting "+str(args.serial))
317317
try:

0 commit comments

Comments
 (0)