Closed cheops closed 7 months ago
I am actually going to be redoing how the subprocesses are handled. It's turned into a monster is what it has done and I need to clean it up. Parsing subprocess output can be a royal pain to do especially when the process needs to run for a long time which is the case here.
I fixed the build. I wrote the spawn function over again. It has a smaller code footprint now and it should have less of an issue working.
build for esp32 (on WSL-ubuntu) works again you may close and disregard this pull request :-)
by line 282
o_char
ande_char
are always empty sincewhile o_char != b'':
andwhile e_char != b'':
will have done their jobwhen this
break
is executed, it might be thatp.poll()
has not yet filled in the returncode This might result in all kind of strange behavior if the result ofspawn
is checked and found to beNone
in stead of0
Same concern for the break for prompt. Maybe after
o_buf = read()
a call should be addedp.wait()
to ensure the child process has terminated?