Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
smbus contention handling
#2
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.
Reply


Messages In This Thread
smbus contention handling - by PatM - Sep-21-2017, 01:21 PM
RE: smbus contention handling - by PatM - Sep-21-2017, 07:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star python exception handling handling .... with traceback mg24 3 1,268 Nov-09-2022, 07:29 PM
Last Post: Gribouillis
  SMBUS 'no such file or directory' hcccs 2 6,012 Jan-31-2021, 04:47 PM
Last Post: hcccs
  SMBUS Support RWP 1 4,306 Nov-06-2017, 08:45 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020