Retrofit for newer nodemcu-uploader

This commit is contained in:
Marcos Kirsch 2015-04-01 23:14:52 -05:00
parent f09fe9a610
commit 2357415466

View File

@ -6,7 +6,7 @@ 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 # Bauds for the serial connection
SPEED=9600 SPEED=115200
###################################################################### ######################################################################
# End of user config # End of user config
@ -22,13 +22,13 @@ usage:
# Upload HTTP files only # Upload HTTP files only
upload_http: $(HTTP_FILES) upload_http: $(HTTP_FILES)
@$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) @$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, $(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) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) @$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, $(f))
# Upload all # Upload all
upload: $(LUA_FILES) $(HTTP_FILES) upload: $(LUA_FILES) $(HTTP_FILES)
@$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, -f $(f) -d $(f)) @$(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, $(f))