diff --git a/src/u_cx_log.c b/src/u_cx_log.c index 3dc7b07..2b65fc9 100644 --- a/src/u_cx_log.c +++ b/src/u_cx_log.c @@ -53,6 +53,7 @@ static bool gUCxLogEnabled = true; void uCxLogPrintTime(void) { +#if U_CX_PORT_PRINTF int32_t timestamp_ms = U_CX_PORT_GET_TIME_MS(); int32_t ms = (int32_t) (timestamp_ms % 1000); int32_t seconds = (int32_t) (timestamp_ms / 1000) % 60 ; @@ -60,6 +61,7 @@ void uCxLogPrintTime(void) int32_t hours = (int32_t) ((timestamp_ms / (1000 * 60 * 60))); U_CX_PORT_PRINTF("[%02" PRId32 ":%02" PRId32 ":%02" PRId32 ".%03" PRId32"]", hours, minutes, seconds, ms); +#endif } void uCxLogDisable(void)