Skip to content

add delays to match arduino change #21

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

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adafruit_sgp40/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def initialize(self) -> None:
# Self Test
self._command_buffer[0] = 0x28
self._command_buffer[1] = 0x0E
self_test = self._read_word_from_command(delay_ms=250)
self_test = self._read_word_from_command(delay_ms=500)
if self_test[0] != 0xD400:
raise RuntimeError("Self test failed")
self._reset()
Expand Down Expand Up @@ -204,7 +204,7 @@ def raw(self) -> int:
"""The raw gas value"""
# recycle a single buffer
self._command_buffer = self._measure_command
read_value = self._read_word_from_command(delay_ms=250)
read_value = self._read_word_from_command(delay_ms=500)
self._command_buffer = bytearray(2)
return read_value[0]

Expand Down