Merge ca4b5c42de into ec670f90e4
This commit is contained in:
commit
00ce25cc72
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue