Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try_lock increase sleep time from 0 to 1 ms #53

Closed
wants to merge 1 commit into from

Conversation

ilario
Copy link

@ilario ilario commented Aug 7, 2024

Fix #52

Increasing the sleep time from 0 ms to 1 ms decreases the CPU usage from 100% to 2% on my A64-OLinuXino.

I hope that 1 ms of delay will not affect anyone...

Maybe there is a smarter solution?

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't do this because it impacts all users of the driver. Instead, the I2C try_lock() driver could be smarter.

@ilario
Copy link
Author

ilario commented Sep 6, 2024

Closing as explained in adafruit/Adafruit_CircuitPython_BusDevice#101 (comment)

@ilario ilario closed this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CPU to 100% when unable to lock
2 participants