Skip to content

Commit 0afda19

Browse files
committed
catch return from all_channels
1 parent 5772169 commit 0afda19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_as7341.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,13 @@ def channel_680nm(self) -> int:
436436
@property
437437
def channel_clear(self) -> int:
438438
"""The current reading for the clear sensor"""
439-
self._all_channels
439+
_ = self._all_channels
440440
return self._channel_4_data
441441

442442
@property
443443
def channel_nir(self) -> int:
444444
"""The current reading for the NIR (near-IR) sensor"""
445-
self._all_channels
445+
_ = self._all_channels
446446
return self._channel_5_data
447447

448448
def _wait_for_data(self, timeout: float = 1.0) -> None:
@@ -465,7 +465,7 @@ def _configure_f1_f4(self) -> None:
465465
"""Configure the sensor to read from elements F1-F4, Clear, and NIR"""
466466
# disable SP_EN bit while making config changes
467467
if self._low_channels_configured:
468-
self._all_channels
468+
_ = self._all_channels
469469
return
470470
self._high_channels_configured = False
471471
self._flicker_detection_1k_configured = False
@@ -489,7 +489,7 @@ def _configure_f5_f8(self) -> None:
489489
"""Configure the sensor to read from elements F5-F8, Clear, and NIR"""
490490
# disable SP_EN bit while making config changes
491491
if self._high_channels_configured:
492-
self._all_channels
492+
_ = self._all_channels
493493
return
494494

495495
self._low_channels_configured = False

0 commit comments

Comments
 (0)