venice1200 / MiSTer_tty2oled

👾 MiSTer Software Add-On showing Text or Pictures on a Display driven by an Arduino 👾
GNU General Public License v3.0
49 stars 10 forks source link

Change the sleep file handling #31

Closed Paradox closed 1 year ago

Paradox commented 1 year ago

inotifywait will timeout, every 5 minutes and check the time in seconds contained in the sleep file, and see if the file is more than 5 minutes old, if it is, delete it, and continue, if it is less than 5 minutes old, it will go back to sleeping.

Paradox commented 1 year ago

I didn't make the change to the ven file, this time, because it is a pretty big change, and, I wasn't sure how you would want to integrate it.

venice1200 commented 1 year ago

What's the reason for this handling.

Paradox commented 1 year ago

What's the reason for this handling.

So tty2oled won't be stuck waiting if the sleep file doesn't get removed, more than about 5 minutes.. It should never happen, I have attempted to make sure SAM always deletes the sleep file, but, it could happen, if all of the processes are killed.

venice1200 commented 1 year ago

...I will respond in the issue thread.