aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
authorPierre DAVID <pdagog@gmail.com>2014-04-14 08:39:46 +0200
committerSudar <sudar@sudarmuthu.com>2014-04-14 12:24:13 +0530
commitaa4c96ce50aca9a98abbe8b0acb334f74f500d57 (patch)
treeaa1da598efd8e98a0fbc6ad2e016a0ef5686ee39 /Arduino.mk
parentb42d05d8b1bcd204336c889c9d83176e3dcea17d (diff)
Allow spaces in "Serial.begin (....)"
Fix #190 Fix #191
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Arduino.mk b/Arduino.mk
index ff395d0..2448c03 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -702,7 +702,7 @@ endif
ifeq ($(strip $(NO_CORE)),)
ifndef MONITOR_BAUDRATE
ifeq ($(words $(LOCAL_PDE_SRCS) $(LOCAL_INO_SRCS)), 1)
- SPEED = $(shell egrep -h 'Serial.begin\([0-9]+\)' $(LOCAL_PDE_SRCS) $(LOCAL_INO_SRCS) | sed -e 's/[^0-9]//g'| head -n1)
+ SPEED = $(shell egrep -h 'Serial.begin *\([0-9]+\)' $(LOCAL_PDE_SRCS) $(LOCAL_INO_SRCS) | sed -e 's/[^0-9]//g'| head -n1)
MONITOR_BAUDRATE = $(findstring $(SPEED),300 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200)
endif