summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/vuprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/vuprintf.c b/firmware/common/vuprintf.c
index becb05e136..a4b3c72680 100644
--- a/firmware/common/vuprintf.c
+++ b/firmware/common/vuprintf.c
@@ -23,6 +23,7 @@
#include <limits.h>
#include <string.h>
#include <stddef.h>
+#include <stdio.h> /* for snprintf */
#include "system.h"
#include "vuprintf.h"
@@ -533,6 +534,8 @@ static const char * format_f(double f,
int radixchar,
bool *numericp)
{
+ (void) radixchar;
+ (void) numericp;
fmt_buf->length = snprintf(fmt_buf->buf, 24, "%d.%06d", (int)f, ABS((int)((f - (int)f)*1e6)));
return fmt_buf->buf;
}