1
0
Fork 0

Fix formatting following the code review.

This commit is contained in:
Jean-François Milants 2021-11-07 16:19:06 +01:00
parent e9c7ab4cfc
commit 8d61419836

View file

@ -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;
} }