summaryrefslogtreecommitdiff
path: root/firmware/common/vuprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/vuprintf.c')
-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 @@
23#include <limits.h> 23#include <limits.h>
24#include <string.h> 24#include <string.h>
25#include <stddef.h> 25#include <stddef.h>
26#include <stdio.h> /* for snprintf */
26#include "system.h" 27#include "system.h"
27#include "vuprintf.h" 28#include "vuprintf.h"
28 29
@@ -533,6 +534,8 @@ static const char * format_f(double f,
533 int radixchar, 534 int radixchar,
534 bool *numericp) 535 bool *numericp)
535{ 536{
537 (void) radixchar;
538 (void) numericp;
536 fmt_buf->length = snprintf(fmt_buf->buf, 24, "%d.%06d", (int)f, ABS((int)((f - (int)f)*1e6))); 539 fmt_buf->length = snprintf(fmt_buf->buf, 24, "%d.%06d", (int)f, ABS((int)((f - (int)f)*1e6)));
537 return fmt_buf->buf; 540 return fmt_buf->buf;
538} 541}