Skip to content

Commit 5bd604c

Browse files
committed
enable 'shell=True' for building esp32s2 board
use folder path i.e example dir instead of path to .ino file
1 parent fa90162 commit 5bd604c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: build_platform.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ def test_examples_in_folder(folderpath):
311311

312312
if BUILD_WARN:
313313
if os.path.exists(gen_file_name):
314-
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, '-e', examplepath]
314+
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, '-e', folderpath]
315315
else:
316-
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, examplepath]
316+
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, folderpath]
317317
else:
318-
cmd = ['arduino-cli', 'compile', '--warnings', 'none', '--export-binaries', '--fqbn', fqbn, examplepath]
319-
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
318+
cmd = ['arduino-cli', 'compile', '--warnings', 'none', '--export-binaries', '--fqbn', fqbn, folderpath]
319+
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
320320
stderr=subprocess.PIPE)
321321
r = proc.wait(timeout=60)
322322
out = proc.stdout.read()

0 commit comments

Comments
 (0)