Skip to content

Commit 8e796ca

Browse files
Cleanup
1 parent 1e5704b commit 8e796ca

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/dimmerTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void dimmerTask(void *parameter)
5353
while (1)
5454
{
5555
vTaskDelayUntil(&xLastWakeTime, ticksToWait);
56-
const suseconds_t msElapsedToday = msSinceMidnight();
56+
const auto msElapsedToday = msSinceMidnight();
5757

5858
if (msElapsedToday) /* to solve flashing at 00:00:000 due to the fact that the first timer has no predecessor at this time */
5959
{

src/main.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ void setup(void)
169169
{
170170
Serial.begin(115200);
171171

172-
173172
log_i("aquacontrol v2");
174173

175174
if (!lcdQueue)
@@ -219,7 +218,7 @@ void setup(void)
219218
{
220219
log_e("could not set ledc clock source. system halted!");
221220
while (1)
222-
delay(100);
221+
delay(100);
223222
}
224223

225224
BaseType_t result = xTaskCreate(lcdTask,
@@ -245,10 +244,8 @@ void setup(void)
245244
log_i("syncing NTP");
246245
sntp_set_time_sync_notification_cb((sntp_sync_time_cb_t)ntpCb);
247246
configTzTime(TIMEZONE, NTP_POOL);
248-
}
249247

250-
void loop()
251-
{
252-
// put your main code here, to run repeatedly:
253-
delay(100);
248+
vTaskDelete(NULL);
254249
}
250+
251+
void loop() {}

0 commit comments

Comments
 (0)