Fix warning: format '%lu' expects argument of type 'long unsigned int'

This commit is contained in:
fvanroie 2021-05-01 03:21:21 +02:00
parent 60df747785
commit d284434f91

View File

@ -64,7 +64,7 @@ static void debugPrintTimestamp(int level, Print* _logOutput)
debugSendAnsiCode(F(TERM_COLOR_CYAN), _logOutput);
if(timeinfo->tm_year >= 120) {
int milli = curTime.tv_usec / 1000;
unsigned long int milli = curTime.tv_usec / 1000;
char buffer[24];
strftime(buffer, sizeof(buffer), "[%b %d %H:%M:%S", timeinfo); // Literal String
// strftime(buffer, sizeof(buffer), "[%H:%M:%S.", timeinfo); // Literal String