From 871105dc64d2982a6d1143ccbafbcd4052b324cc Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Wed, 1 Apr 2015 22:30:35 -0500 Subject: [PATCH] Support for modifying the serial port baud rate. --- makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 011962b..f48463a 100644 --- a/makefile +++ b/makefile @@ -5,6 +5,8 @@ NODEMCU-UPLOADER=../nodemcu-uploader/nodemcu-uploader.py # Serial port PORT=/dev/cu.usbserial-A602HRAZ +# Bauds for the serial connection +SPEED=9600 ###################################################################### # End of user config @@ -20,13 +22,13 @@ usage: # Upload HTTP files only upload_http: $(HTTP_FILES) - @$(NODEMCU-UPLOADER) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) + @$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) # Upload httpserver lua files (init and server module) upload_server: $(LUA_FILES) - @$(NODEMCU-UPLOADER) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) + @$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) # Upload all upload: $(LUA_FILES) $(HTTP_FILES) - @$(NODEMCU-UPLOADER) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) + @$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f))