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

Method value_byte

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

Source from the content-addressed store, hash-verified

283 static int16_t value_int() { return (int16_t)value_long(); }
284 static uint16_t value_ushort() { return (uint16_t)value_long(); }
285 static uint8_t value_byte() { return (uint8_t)constrain(value_long(), 0, 255); }
286
287 // Bool is true with no value or non-zero
288 static bool value_bool() { return !has_value() || !!value_byte(); }

Callers 15

DMethod · 0.80
M140_M190Method · 0.80
M104_M109Method · 0.80
M106Method · 0.80
M141Method · 0.80
M123Method · 0.80
M155Method · 0.80
M350Method · 0.80
M351Method · 0.80
M605Method · 0.80
M111Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected