From d284434f91a56c81ab4a9fc85a65a7a67baea5e1 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Sat, 1 May 2021 03:21:21 +0200 Subject: [PATCH] Fix warning: format '%lu' expects argument of type 'long unsigned int' --- src/hasp_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp_debug.cpp b/src/hasp_debug.cpp index 9e29d7ab..1b66d16f 100644 --- a/src/hasp_debug.cpp +++ b/src/hasp_debug.cpp @@ -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