Skip to content

Commit 461ca10

Browse files
Cleanup
1 parent 236060d commit 461ca10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dimmerTask.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ void dimmerTask(void *parameter)
126126
/*
127127
static int lps = 0;
128128
lps++;
129-
static time_t lastlps = time(NULL);
130-
if (time(NULL) != lastlps)
129+
static time_t currentSecond = time(NULL);
130+
if (time(NULL) != currentSecond)
131131
{
132132
log_i("loops per second: %i", lps);
133-
lastlps++;
133+
currentSecond++;
134134
lps = 0;
135135
}
136136
*/

0 commit comments

Comments
 (0)