Sep-21-2017, 07:13 PM
Well it looks like doing it this way isn't a good idea. Hadn't thought of it but "i2c_busy" has the correct value when the thread is created but it doesn't update while the thread is running (makes sense now that I think of it). TOP shows threads piling up whenever it actually hits the While statement and they don't go away until I kill the program.
Guess I'll redo this a bit and put the check in the main loop just before creating the thread.
Guess I'll redo this a bit and put the check in the main loop just before creating the thread.