diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-03-08 15:28:51 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-03-08 15:28:51 +0000 |
| commit | 01d50d0d586a0e2630613120336faf75277d22d6 (patch) | |
| tree | 5ffc656d2f47821262e76092b5251eb6f29964a4 /stm/printf.c | |
| parent | 0c36da0b59bd3d5aeb6f7bd7f75913695a1dd366 (diff) | |
stm: Wrap some functions in MICROPY_ENABLE_FLOAT.
Diffstat (limited to 'stm/printf.c')
| -rw-r--r-- | stm/printf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stm/printf.c b/stm/printf.c index cfe4204b6..abbc58b66 100644 --- a/stm/printf.c +++ b/stm/printf.c @@ -209,6 +209,7 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, va_list args) { case 'P': // ? chrs += pfenv_print_int(pfenv, va_arg(args, int), 0, 16, 'A', flags, width); break; +#if MICROPY_ENABLE_FLOAT case 'g': { // This is a very hacky approach to printing floats. Micropython @@ -234,6 +235,7 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, va_list args) { } break; } +#endif default: pfenv->print_strn(pfenv->data, fmt, 1); chrs += 1; |
