From a68f79055df4e48e5d7ff8740c91ea0fa37bbf9c Mon Sep 17 00:00:00 2001 From: Scott Smith Date: Sun, 28 Mar 2021 16:00:02 -0700 Subject: [PATCH] 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. --- tools/uf2conv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/uf2conv.py b/tools/uf2conv.py index 7337e6d4..087d3b9f 100755 --- a/tools/uf2conv.py +++ b/tools/uf2conv.py @@ -311,7 +311,7 @@ def main(): error("Family ID needs to be a number or one of: " + ", ".join(families.keys())) if args.serial: - if str(args.serial).startswith("/dev/tty") or str(args.serial).startswith("COM"): + if str(args.serial).startswith("/dev/tty") or str(args.serial).startswith("COM") or str(args.serial).startswith("/dev/cu"): try: print("Resetting "+str(args.serial)) try: