diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c index a44ca29560..c700034f49 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c @@ -174,6 +174,8 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list ap) return pr.bytes; } +#ifndef SIMULATOR + struct for_fprintf { int fd; /* where to store it */ int bytes; /* amount stored */ @@ -193,8 +195,6 @@ static int fprfunc(void *pr, unsigned char letter) } -#ifndef SIMULATOR - int fprintf(int fd, const char *fmt, ...) { bool ok;