google / CFU-Playground

Want a faster ML processor? Do it yourself! -- A framework for playing with custom opcodes to accelerate TensorFlow Lite for Microcontrollers (TFLM). . . . . . Online tutorial: https://google.github.io/CFU-Playground/ For reference docs, see the link below.
http://cfu-playground.rtfd.io/
Apache License 2.0
452 stars 116 forks source link

Improve determination of TTY for lxterm #372

Open tcal-x opened 2 years ago

tcal-x commented 2 years ago

Currently the Makefile checks for an active TTY. Sometimes this happens too early. For example, with Fomu, the /dev/ttyACM0 terminal doesn't appear until after the gateware and firmware are flashed.

We should be able to change the check to instead be a shell command issued right before the lxterm command.

We'd also want to add a short sleep before the check to give the TTY time to appear.

mithro commented 2 years ago

Don't use sleep, just poll for the file to appear with a timeout.