"frontend/src/git@transfer.hft-stuttgart.de:co2ampel2/web.git" did not exist on "2f3008680ab22db6c179b77ebb053a61b00323b3"
Commit d01bff4e authored by Eric Duminil's avatar Eric Duminil
Browse files

Fix casting bug

parent 545ad2fd
...@@ -251,7 +251,7 @@ void NTPClient::getFormattedDate(char *formatted_date, unsigned long secs) { ...@@ -251,7 +251,7 @@ void NTPClient::getFormattedDate(char *formatted_date, unsigned long secs) {
char formatted_time[9]; char formatted_time[9];
this->getFormattedTime(formatted_time, secs); this->getFormattedTime(formatted_time, secs);
snprintf(formatted_date, 23, "%4d-%02d-%02lu %s%+03d", year, month, rawTime, formatted_time, (int8_t) this->_timeOffset / 3600); snprintf(formatted_date, 23, "%4d-%02d-%02lu %s%+03d", year, month, rawTime, formatted_time, (int8_t) (this->_timeOffset / 3600));
} }
void NTPClient::setEpochTime(unsigned long secs) { void NTPClient::setEpochTime(unsigned long secs) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment