Add SERIAL_FLOAT_PRECISION option (#18367)

This commit is contained in:
Fabio Santos authored and GitHub committed 2020-06-22 21:12:45 -05:00
1 parent 1ea4e393c9
commit 25c7c43a82
15 files changed
+30 -21

No files matched your search

+6
View File
@@ -286,6 +286,12 @@ extern uint8_t marlin_debug_flags;
#define SERIAL_ECHO_TERNARY(TF, PRE, ON, OFF, POST) serial_ternary(TF, PSTR(PRE), PSTR(ON), PSTR(OFF), PSTR(POST))
#if SERIAL_FLOAT_PRECISION
#define SERIAL_DECIMAL(V) SERIAL_PRINT(V, SERIAL_FLOAT_PRECISION)
#else
#define SERIAL_DECIMAL(V) SERIAL_ECHO(V)
#endif
//
// Functions for serial printing from PROGMEM. (Saves loads of SRAM.)
//