Fix build issue on ESP32

This commit is contained in:
TD-er
2020-11-16 20:05:09 +01:00
parent 648e9c2338
commit 0be1fcc2dc
+1 -1
View File
@@ -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;