Merge pull request #5 from GioTB/master

Fixes error on initialization when SHTC3 its sleep
This commit is contained in:
Limor "Ladyada" Fried 2025-07-30 09:38:17 -04:00 committed by GitHub
commit b784600be7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,8 +66,8 @@ bool Adafruit_SHTC3::begin(TwoWire *theWire) {
return false; return false;
} }
reset();
sleep(false); sleep(false);
reset();
// read the ID // read the ID
if ((readID() & 0x083F) != 0x807) { if ((readID() & 0x083F) != 0x807) {