Skip to content

Commit b74f2ef

Browse files
committed
Automatically read the BAUDRATE from sketch. Works only in linux for now
1 parent eed8c52 commit b74f2ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arduino-mk/Arduino.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,10 @@ ifndef MONITOR_BAUDRATE
428428
MONITOR_BAUDRATE = $(findstring $(SPEED),300 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200)
429429

430430
ifeq ($(MONITOR_BAUDRATE),)
431-
$(warning The monitor speed wasnt properly set. Set to 9600 by default)
432-
$(shell sleep 1)
433431
MONITOR_BAUDRATE = 9600
432+
$(call show_config_variable,MONITOR_BAUDRATE,[ASSUMED])
434433
else
435-
$(call show_config_variable,MONITOR_BAUDRATE,[DETECTED], (in sketch))
434+
$(call show_config_variable,MONITOR_BAUDRATE,[DETECTED], (in sketch))
436435
endif
437436
else
438437
$(call show_config_variable,MONITOR_BAUDRATE, [SPECIFIED])

0 commit comments

Comments
 (0)