Skip to main content

check_gcode

Function check_gcode 

Source
pub fn check_gcode(line: &str, limits: &TempLimits) -> GcodeVerdict
Expand description

Statically vet a raw G-code payload against limits.

A payload may contain more than one line (a \n/\r could otherwise hide a second command past the first), so every line is vetted and the first block wins.