File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1111boards = [
1212 "NODEMCU" ,
1313 "WEMOS_D1_MINI" ,
14+ "HACKHELD_VEGA" ,
1415 "MALTRONICS" ,
1516 "DISPLAY_EXAMPLE_I2C" ,
1617 "DISPLAY_EXAMPLE_SPI" ,
5455
5556for board in boards :
5657 print (f"Compiling { board } ..." , flush = True )
58+
59+ if os .path .exists (f"{ folder } /esp8266_deauther_{ version } _{ board } .bin" ):
60+ print ("Already compiled" )
61+ continue
62+
5763 os .system (f"arduino-cli cache clean" )
58- command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-properties \" build.extra_flags=-DESP8266 -D{ board } \" --output-dir { folder } "
64+ command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-property \" build.extra_flags=-DESP8266 -D{ board } \" --output-dir { folder } "
5965 process = subprocess .Popen (command , shell = True , stdout = subprocess .PIPE )
6066 process .wait ()
61- os .system (f"mv { folder } /esp8266_deauther.ino.bin { folder } /esp8266_deauther_{ version } _{ board } .bin" )
67+ os .system (
68+ f"mv { folder } /esp8266_deauther.ino.bin { folder } /esp8266_deauther_{ version } _{ board } .bin" )
6269 print (f"OK" )
6370
6471os .system (f"rm { folder } /esp8266_deauther.ino.elf" )
6572os .system (f"rm { folder } /esp8266_deauther.ino.map" )
6673
67- print ("Finished :)" )
74+ print ("Finished :)" )
You can’t perform that action at this time.
0 commit comments