mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Fix byte alignments #273
This commit is contained in:
parent
25c8a66869
commit
f8b3bc4133
14 changed files with 109 additions and 56 deletions
|
|
@ -36,7 +36,14 @@ time_t Timestamp::mkUTCTime(struct tm *dt) {
|
|||
return tsBadLocal + tsLocalOffset;
|
||||
}
|
||||
time_t Timestamp::parseUTCTime(const char *buff) {
|
||||
struct tm dt = {0};
|
||||
struct tm dt;
|
||||
dt.tm_hour = 0;
|
||||
dt.tm_mday = 0;
|
||||
dt.tm_mon = 0;
|
||||
dt.tm_year = 0;
|
||||
dt.tm_wday = 0;
|
||||
dt.tm_yday = 0;
|
||||
dt.tm_isdst = false;
|
||||
char num[5];
|
||||
uint8_t i = 0;
|
||||
memset(num, 0x00, sizeof(num));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue