-
Notifications
You must be signed in to change notification settings - Fork 1
ESP32 on Mac #11
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
ESP32 on Mac #11
Conversation
on Mac, the serial port for TBeam is same pattern as T5gray and TWrist
loramesh/Makefile
Outdated
@@ -151,6 +151,8 @@ ifndef SERIAL | |||
SERIAL = $(shell ls /dev/tty.usbserial-????) | |||
else ifeq ($(BOARD),T5gray) | |||
SERIAL = $(shell ls /dev/tty.usbserial-???????????) | |||
else ifeq ($(BOARD),TBeam) | |||
SERIAL = $(shell ls /dev/tty.usbserial-???????????) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need QA.
loramesh/Makefile
Outdated
endif | ||
|
||
# catch all | ||
SERIAL ?= $(shell ls /dev/tty* | grep 'ACM\|USB\|wchusb') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know makefile, but this looks smarter than an else
if it does what I think (i.e. try setting this if SERIAL
was not set)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KevinTriplett
I think we can simplify this to just
SERIAL ?= $(shell ls /dev/tty* | grep 'ACM\|USB\|wchusb\|usbserial')
and skip the else clause. Otherwise looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I simplified it further .. see commit
I'm not an expert in Makefile, but this passes the "looks good" test. I'd like someone to "smoke test" this - try running this on TBeam to confirm no smoke comes out the side when you turn it on |
Three commits:
Commit 1 may not be acceptable, let me know if you want do this another change.
Also, I notice that recipe
flash
looks identical tofullflash
-- is it vestigial and can be removed?