@@ -435,13 +435,13 @@ def channel_680nm(self) -> int:
435
435
@property
436
436
def channel_clear (self ) -> int :
437
437
"""The current reading for the clear sensor"""
438
- self ._configure_f5_f8 ()
438
+ _ = self ._all_channels
439
439
return self ._channel_4_data
440
440
441
441
@property
442
442
def channel_nir (self ) -> int :
443
443
"""The current reading for the NIR (near-IR) sensor"""
444
- self ._configure_f5_f8 ()
444
+ _ = self ._all_channels
445
445
return self ._channel_5_data
446
446
447
447
def _wait_for_data (self , timeout : float = 1.0 ) -> None :
@@ -463,6 +463,7 @@ def _configure_f1_f4(self) -> None:
463
463
"""Configure the sensor to read from elements F1-F4, Clear, and NIR"""
464
464
# disable SP_EN bit while making config changes
465
465
if self ._low_channels_configured :
466
+ _ = self ._all_channels
466
467
return
467
468
self ._high_channels_configured = False
468
469
self ._flicker_detection_1k_configured = False
@@ -486,6 +487,7 @@ def _configure_f5_f8(self) -> None:
486
487
"""Configure the sensor to read from elements F5-F8, Clear, and NIR"""
487
488
# disable SP_EN bit while making config changes
488
489
if self ._high_channels_configured :
490
+ _ = self ._all_channels
489
491
return
490
492
491
493
self ._low_channels_configured = False
0 commit comments