Skip to content

Commit dbbe1f4

Browse files
Brian Friedkinmkellner
authored andcommitted
terminate serial2xsbug.exe before deploying apps on esp
1 parent 2f4bcff commit dbbe1f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/mcconfig/nmake.esp.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ LIB_ARCHIVE = $(LIB_DIR)\libxslib.a
322322
all: $(LAUNCH)
323323

324324
debug: $(LIB_DIR) $(LIB_ARCHIVE) $(APP_ARCHIVE) $(BIN_DIR)\main.bin
325+
-tasklist /nh /fi "imagename eq serial2xsbug.exe" | (find /i "serial2xsbug.exe" > nul) && taskkill /f /t /im "serial2xsbug.exe" >nul 2>&1
325326
tasklist /nh /fi "imagename eq xsbug.exe" | find /i "xsbug.exe" > nul || (start $(BUILD_DIR)\bin\win\release\xsbug.exe)
326327
$(ESPTOOL) $(UPLOAD_VERB) -cd $(UPLOAD_RESET) -cb $(UPLOAD_SPEED) -cp $(UPLOAD_PORT) -ca 0x00000 -cf $(BIN_DIR)\main.bin
327328
$(BUILD_DIR)\bin\win\release\serial2xsbug $(UPLOAD_PORT) 460800 8N1 $(TMP_DIR)\main.elf

0 commit comments

Comments
 (0)