This commit is contained in:
lifanko lee 2022-12-10 08:54:13 +00:00 committed by GitHub
commit 00ce25cc72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,11 @@ bool Adafruit_SHTC3::begin(TwoWire *theWire) {
return false;
}
reset();
// In some cases, the processor which shtc3 connected will restart.
// And shtc3 maybe in sleep mode before restart, but shtc3 cannot be
// woken up in sleep mode, so wake up chip before reset.
sleep(false);
reset();
// read the ID
if ((readID() & 0x083F) != 0x807) {