From 4c3f6858fd35ec1393dabacb78362a21b1de087c Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Sat, 20 Jul 2024 09:28:21 -0700 Subject: [PATCH] Add comment to `SELFTEST_SUCCESS` constant Co-authored-by: Danilo Bargen --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index a778e1b..5d824a4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -306,6 +306,7 @@ pub struct Sgp30 { initialized: bool, } +/// The fixed data pattern returned when the on-chip self-test is successful. const SELFTEST_SUCCESS: &[u8] = &[0xd4, 0x00]; impl Sgp30