We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c7ab4 commit 8d61419Copy full SHA for 8d61419
1 file changed
src/drivers/Cst816s.cpp
@@ -33,14 +33,14 @@ bool Cst816S::Init() {
33
vTaskDelay(5);
34
35
static constexpr uint8_t maxRetries = 3;
36
- bool isDeviceOk = false;
+ bool isDeviceOk;
37
uint8_t retries = 0;
38
do {
39
isDeviceOk = CheckDeviceIds();
40
retries++;
41
- } while(!isDeviceOk && retries < maxRetries);
+ } while (!isDeviceOk && retries < maxRetries);
42
43
- if(!isDeviceOk) {
+ if (!isDeviceOk) {
44
return false;
45
}
46
0 commit comments