Fixed compiler script

This commit is contained in:
Spacehuhn 2021-01-17 11:03:05 +01:00
parent d06e5d35c8
commit abf56ca866
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ os.system(f"mkdir {folder}")
for board in boards:
print(f"Compiling {board}...", flush=True)
os.system(f"arduino-cli cache clean");
command = f"arduino-cli compile --fqbn deauther:esp8266:d1_mini --build-properties \"build.extra_flags=-DESP8266 -D{board}\" --output-dir {folder}"
os.system(f"arduino-cli cache clean")
command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-properties \"build.extra_flags=-DESP8266 -D{board}\" --output-dir {folder}"
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
process.wait()
os.system(f"mv {folder}/esp8266_deauther.ino.bin {folder}/esp8266_deauther_{version}_{board}.bin")