MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / serial_offset

Function serial_offset

Marlin/src/core/serial.cpp:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100void SERIAL_ECHO_SP(uint8_t count) { count *= (PROPORTIONAL_FONT_RATIO); while (count--) SERIAL_CHAR(' '); }
101
102void serial_offset(const_float_t v, const uint8_t sp/*=0*/) {
103 if (v == 0 && sp == 1)
104 SERIAL_CHAR(' ');
105 else if (v > 0 || (v == 0 && sp == 2))
106 SERIAL_CHAR('+');
107 SERIAL_ECHO(v);
108}
109
110void serial_ternary(FSTR_P const pre, const bool onoff, FSTR_P const on, FSTR_P const off, FSTR_P const post/*=nullptr*/) {
111 if (pre) SERIAL_ECHO(pre);

Callers 5

LOOP_NUM_AXESFunction · 0.85
print_signed_floatFunction · 0.85
M423_reportMethod · 0.85
debugMethod · 0.85
print_pointsMethod · 0.85

Calls 2

SERIAL_CHARFunction · 0.70
SERIAL_ECHOFunction · 0.70

Tested by

no test coverage detected