Fix formatting following the code review.
This commit is contained in:
parent
e9c7ab4cfc
commit
8d61419836
|
@ -33,14 +33,14 @@ bool Cst816S::Init() {
|
||||||
vTaskDelay(5);
|
vTaskDelay(5);
|
||||||
|
|
||||||
static constexpr uint8_t maxRetries = 3;
|
static constexpr uint8_t maxRetries = 3;
|
||||||
bool isDeviceOk = false;
|
bool isDeviceOk;
|
||||||
uint8_t retries = 0;
|
uint8_t retries = 0;
|
||||||
do {
|
do {
|
||||||
isDeviceOk = CheckDeviceIds();
|
isDeviceOk = CheckDeviceIds();
|
||||||
retries++;
|
retries++;
|
||||||
} while(!isDeviceOk && retries < maxRetries);
|
} while (!isDeviceOk && retries < maxRetries);
|
||||||
|
|
||||||
if(!isDeviceOk) {
|
if (!isDeviceOk) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user