boolval revisited (#8016)

This commit is contained in:
Luc Van Daele
2017-10-18 21:03:17 +02:00
committed by Roxy-3D
parent 572cf0ec95
commit 3986a84f77
4 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@
*
* X Probe X position (default current X)
* Y Probe Y position (default current Y)
* S0 Leave the probe deployed
* E Engage the probe for each probe
*/
void GcodeSuite::G30() {
const float xpos = parser.linearval('X', current_position[X_AXIS] + X_PROBE_OFFSET_FROM_EXTRUDER),
@ -51,7 +51,7 @@ void GcodeSuite::G30() {
setup_for_endstop_or_probe_move();
const float measured_z = probe_pt(xpos, ypos, parser.boolval('S', true), 1);
const float measured_z = probe_pt(xpos, ypos, parser.boolval('E'), 1);
if (!isnan(measured_z)) {
SERIAL_PROTOCOLPAIR("Bed X: ", FIXFLOAT(xpos));