diff options
| author | Matthijs Kooijman <matthijs@stdin.nl> | 2013-05-30 13:08:02 +0200 |
|---|---|---|
| committer | Matthijs Kooijman <matthijs@stdin.nl> | 2013-05-30 13:08:02 +0200 |
| commit | 05ce9fd14b9d925fb7582f872eba9f91afeeac5d (patch) | |
| tree | 6dbf95c2f12de68fe83c08d92e6d6ded3c2a61b2 /arduino-mk | |
| parent | 14fd6e712699ca98485abb54e84972cc9a9a59d6 (diff) | |
When detecting MONITOR_BAUDRATE, use $(LOCAL_INO_SRCS)
Now that this detection code is moved down a bit, it can use the same
.ino list as all the other code.
Diffstat (limited to 'arduino-mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 24c6021..88efb0d 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -658,7 +658,7 @@ endif # ifndef MONITOR_BAUDRATE #This works only in linux. TODO: Port it to MAC OS also - SPEED = $(shell grep --max-count=1 --regexp="Serial.begin" $$(ls -1 *.ino) | sed -e 's/\t//g' -e 's/\/\/.*$$//g' -e 's/(/\t/' -e 's/)/\t/' | awk -F '\t' '{print $$2}' ) + SPEED = $(shell grep --max-count=1 --regexp="Serial.begin" $(LOCAL_INO_SRCS) | sed -e 's/\t//g' -e 's/\/\/.*$$//g' -e 's/(/\t/' -e 's/)/\t/' | awk -F '\t' '{print $$2}' ) MONITOR_BAUDRATE = $(findstring $(SPEED),300 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200) ifeq ($(MONITOR_BAUDRATE),) |
