CST816S : read device id but do not disable the device if they are not correct.

This commit is contained in:
Jean-François Milants 2021-11-14 14:13:56 +01:00
parent cbcae2ec54
commit 9256f24663
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ bool Cst816S::Init() {
twiMaster.Read(twiAddress, 0xa7, &dummy, 1);
vTaskDelay(5);
/*
static constexpr uint8_t maxRetries = 3;
bool isDeviceOk;
uint8_t retries = 0;
@ -40,7 +40,7 @@ bool Cst816S::Init() {
isDeviceOk = CheckDeviceIds();
retries++;
} while (!isDeviceOk && retries < maxRetries);
/*
if (!isDeviceOk) {
return false;
}