mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Fix more warnings seen with "--warnings more"
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
5b0e19438a
commit
a1d4a36379
11 changed files with 59 additions and 45 deletions
|
|
@ -25,7 +25,6 @@ char * Timestamp::formatISO(struct tm *dt, int tz) {
|
|||
int tzHrs = floor(tz/100);
|
||||
int tzMin = tz - (tzHrs * 100);
|
||||
int ms = millis() % 1000;
|
||||
char isoTime[32];
|
||||
snprintf(this->_timeBuffer, sizeof(this->_timeBuffer), "%04d-%02d-%02dT%02d:%02d:%02d.%03d%s%02d%02d",
|
||||
dt->tm_year + 1900, dt->tm_mon + 1, dt->tm_mday, dt->tm_hour, dt->tm_min, dt->tm_sec, ms, tzHrs < 0 ? "-" : "+", abs(tzHrs), abs(tzMin));
|
||||
return this->_timeBuffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue