summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/vuprintf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/common/vuprintf.c b/firmware/common/vuprintf.c
index 8bb9451662..fb053ae7da 100644
--- a/firmware/common/vuprintf.c
+++ b/firmware/common/vuprintf.c
@@ -29,11 +29,18 @@
29#include "ap_int.h" 29#include "ap_int.h"
30 30
31#ifndef BOOTLOADER 31#ifndef BOOTLOADER
32
33/* Only the Quake plugin needs float formatting */
34#if defined(HAVE_LCD_COLOR) && \
35 (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) && \
36 (PLUGIN_BUFFER_SIZE > 0x14000) && (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(CPU_ARM)
32/* turn everything on */ 37/* turn everything on */
33#define FMT_LENMOD (0xffffffff) 38#define FMT_LENMOD (0xffffffff)
34#define FMT_RADIX (0xffffffff) 39#define FMT_RADIX (0xffffffff)
35#endif 40#endif
36 41
42#endif
43
37/* these are the defaults if no other preference is given */ 44/* these are the defaults if no other preference is given */
38#ifndef FMT_LENMOD 45#ifndef FMT_LENMOD
39#define FMT_LENMOD (FMT_LENMOD_l | \ 46#define FMT_LENMOD (FMT_LENMOD_l | \