mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix compiler warning
This commit is contained in:
parent
8e5061852f
commit
4fdbe8a5c0
@ -135,7 +135,7 @@ void event_timer_clock(lv_task_t* task)
|
||||
|
||||
char buffer[24] = {0};
|
||||
if(timeinfo->tm_year < 120) {
|
||||
snprintf_P(buffer, sizeof(buffer), PSTR("%d"), seconds);
|
||||
snprintf_P(buffer, sizeof(buffer), PSTR("%ld"), seconds);
|
||||
} else {
|
||||
strftime(buffer, sizeof(buffer), D_TIMESTAMP, timeinfo); // Literal String
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user