Support for modifying the serial port baud rate.
This commit is contained in:
parent
4989410f7b
commit
871105dc64
8
makefile
8
makefile
@ -5,6 +5,8 @@
|
|||||||
NODEMCU-UPLOADER=../nodemcu-uploader/nodemcu-uploader.py
|
NODEMCU-UPLOADER=../nodemcu-uploader/nodemcu-uploader.py
|
||||||
# Serial port
|
# Serial port
|
||||||
PORT=/dev/cu.usbserial-A602HRAZ
|
PORT=/dev/cu.usbserial-A602HRAZ
|
||||||
|
# Bauds for the serial connection
|
||||||
|
SPEED=9600
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# End of user config
|
# End of user config
|
||||||
@ -20,13 +22,13 @@ usage:
|
|||||||
|
|
||||||
# Upload HTTP files only
|
# Upload HTTP files only
|
||||||
upload_http: $(HTTP_FILES)
|
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 httpserver lua files (init and server module)
|
||||||
upload_server: $(LUA_FILES)
|
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 all
|
||||||
upload: $(LUA_FILES) $(HTTP_FILES)
|
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))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user