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

Method floatval

Marlin/src/gcode/parser.h:424–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 // Provide simple value accessors with default option
423 static char* stringval(const char c, char * const dval=nullptr) { return seenval(c) ? value_string() : dval; }
424 static float floatval(const char c, const float dval=0.0) { return seenval(c) ? value_float() : dval; }
425 static bool boolval(const char c, const bool dval=false) { return seenval(c) ? value_bool() : (seen(c) ? true : dval); }
426 static uint8_t byteval(const char c, const uint8_t dval=0) { return seenval(c) ? value_byte() : dval; }
427 static int16_t intval(const char c, const int16_t dval=0) { return seenval(c) ? value_int() : dval; }

Callers 9

G34Method · 0.80
M422Method · 0.80
G33Method · 0.80
G34Method · 0.80
G425Method · 0.80
M210Method · 0.80
M163Method · 0.80
ubl_G29.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected