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

minimum 20ms continuous read mode #34

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

FoamyGuy
Copy link
Contributor

@FoamyGuy FoamyGuy commented Jan 2, 2025

@ladyada

Resolves: #26

In testing I did see the device get locked up when set to 10ms continuous read mode. For me it was hanging forever getting stuck inside of this loop when this happened. I tried a few ideas to make it sort of timeout if it gets stuck in that loop, but was unsuccessful with a few quick attempts.

Using 20ms instead seems to alleviate the problem, I have not had it lock up once on this setting. I believe this is what was being recommended by the comments in the issue.

This change enforces a 20ms minimum on for the continuous read setting.

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

yay

@FoamyGuy FoamyGuy merged commit 1028461 into adafruit:main Jan 2, 2025
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 3, 2025
Updating https://github.com/adafruit/Adafruit_CircuitPython_MLX90393 to 2.3.1 from 2.3.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MLX90393#45 from FoamyGuy/reset_sleep_ms

Updating https://github.com/adafruit/Adafruit_CircuitPython_MPRLS to 1.2.20 from 1.2.19:
  > Merge pull request adafruit/Adafruit_CircuitPython_MPRLS#20 from FoamyGuy/type_annotations

Updating https://github.com/adafruit/Adafruit_CircuitPython_PCF8575 to 1.0.7 from 1.0.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_PCF8575#8 from FoamyGuy/value_return_bool

Updating https://github.com/adafruit/Adafruit_CircuitPython_VL6180X to 1.4.15 from 1.4.14:
  > Merge pull request adafruit/Adafruit_CircuitPython_VL6180X#34 from FoamyGuy/min_delay_continuous

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 7.11.0 from 7.10.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#232 from vladak/send_bytes_eagain
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#226 from vladak/connect_session_id
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#229 from manchicken/patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#231 from dhalbert/partial-send
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.

Continuous mode freezes with default, smallest delay
2 participants