The display sometimes crashed (characters drawn at random places, text not cleared, etc.) at startup or during a session, sometimes even stopping the entire program. This PR should solve the problem. It adds a lock around code that draws on screen, preventing both threads to draw at the same time.
The display sometimes crashed (characters drawn at random places, text not cleared, etc.) at startup or during a session, sometimes even stopping the entire program. This PR should solve the problem. It adds a lock around code that draws on screen, preventing both threads to draw at the same time.