Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stty command doesn't understand --file under MacOSX #6

Open
davehylands opened this issue Apr 25, 2020 · 2 comments
Open

stty command doesn't understand --file under MacOSX #6

davehylands opened this issue Apr 25, 2020 · 2 comments

Comments

@davehylands
Copy link

When I run just itm with my Black Magic Probe attached, I get this error:

831 >just itm
drone probe itm --reset 0,1 -- 0,1
stty: illegal option -- --file=/dev/tty.usbmodem7ABA4DC13
usage: stty [-a|-e|-g] [-f file] [options]
Error: `"stty" "--file=/dev/tty.usbmodem7ABA4DC13" "speed" "115200" "raw"` exited with status code: 1
error: Recipe `itm` failed on line 72 with exit code 1

And if I manually run stty:

$ stty --file=/dev/tty.usbmodem7ABA4DC13 
stty: illegal option -- --file=/dev/tty.usbmodem7ABA4DC13
usage: stty [-a|-e|-g] [-f file] [options]
$ stty -f /dev/tty.usbmodem7ABA4DC13 
speed 9600 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel -brkint
oflags: -opost -onlcr -oxtabs
cflags: cs8 -parenb
@davehylands
Copy link
Author

It looks like its more complicated that just -f. I manually tried running the full command:

$ stty -f /dev/tty.usbmodem7ABA4DC13 speed 115200 raw
9600

and its still reporting 9600. Running with sudo doesn't make any difference.

@valff
Copy link
Member

valff commented Apr 28, 2020

I don't use Mac, so I can't debug it. If you manage stty to work when you run it manually on your machine, I will be glad to fix drone CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants