From 0be1fcc2dcae4f13b04da3701e9e27273e228a9f Mon Sep 17 00:00:00 2001 From: TD-er Date: Mon, 16 Nov 2020 20:05:09 +0100 Subject: [PATCH] Fix build issue on ESP32 --- lib/ccronexpr/ccronexpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ccronexpr/ccronexpr.c b/lib/ccronexpr/ccronexpr.c index b342e8713..1933eb144 100644 --- a/lib/ccronexpr/ccronexpr.c +++ b/lib/ccronexpr/ccronexpr.c @@ -545,7 +545,7 @@ static char* to_string(int num) { if (abs(num) >= CRON_MAX_NUM_TO_SRING) return NULL; char* str = (char*) cron_malloc(CRON_NUM_OF_DIGITS(num) + 1); if (!str) return NULL; - int res = sprintf_P(str, PSTR("%d"), num); + int res = sprintf(str, "%d", num); if (res < 0) { cron_free(str); return NULL;