Skip to content

Commit 62fd912

Browse files
committed
Correct formatting to avoid compiler warning for misleading identation
The warning was 'if clause does not guard'
1 parent a841ae4 commit 62fd912

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

TickerScheduler.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ bool TickerScheduler::disable(uint8_t i)
7878

7979
bool TickerScheduler::enable(uint8_t i)
8080
{
81-
if (i >= this->size || !this->items[i].is_used)
82-
return false;
81+
if (i >= this->size || !this->items[i].is_used) return false;
8382

84-
bool * flag = &this->items[i].flag;
85-
this->items[i].t.attach_ms(this->items[i].period, TickerScheduler::handleTickerFlag, flag);
83+
bool * flag = &this->items[i].flag;
84+
this->items[i].t.attach_ms(this->items[i].period, TickerScheduler::handleTickerFlag, flag);
8685

8786
return true;
8887
}

0 commit comments

Comments
 (0)