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.
This commit is contained in:
parent
4cf6d90acc
commit
a68f79055d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue