aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk/Arduino.mk
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2013-01-03 22:31:24 +0530
committerSudar <sudar@sudarmuthu.com>2013-01-03 22:31:24 +0530
commite9f5897d19aa3b7396b00d35667897d931aedc5b (patch)
tree6b4652f02615637a5c23b9fe2fcbcb93f766df65 /arduino-mk/Arduino.mk
parent0966e8e5f3df8cfd2d96c470fcfca6095f23a4b1 (diff)
Fixed the automatic baudrate detection script that was broken if the line already had the tab character
Diffstat (limited to 'arduino-mk/Arduino.mk')
-rw-r--r--arduino-mk/Arduino.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index ec5a758..96f2e1b 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -511,8 +511,8 @@ endif
# for more information (search for 'character special device').
#
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/\/\/.*$$//g' -e 's/(/\t/' -e 's/)/\t/' | awk -F '\t' '{print $$2}' )
+ #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}' )
MONITOR_BAUDRATE = $(findstring $(SPEED),300 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200)
ifeq ($(MONITOR_BAUDRATE),)