G26's default behaviour ought to be the entire mesh (#6726)

Adding the capability to specify ahead of time how much of the validation pattern to print made it so by default G26 only did one circle and no connecting lines.

It is more natural for the unsophisticated user to just do the entire mesh (bed).   We default the repetition count to GRID_MAX_POINTS+1 to insure we get every last one of them!
This commit is contained in:
Roxy-3D 2017-05-13 15:53:44 -05:00 committed by GitHub
parent 15040821e0
commit c06af63f87

View File

@ -734,7 +734,7 @@
random_deviation = code_has_value() ? code_value_float() : 50.0;
}
g26_repeats = code_seen('R') ? (code_has_value() ? code_value_int() : 999) : 1;
g26_repeats = code_seen('R') ? (code_has_value() ? code_value_int() : GRID_MAX_POINTS+1) : GRID_MAX_POINTS+1;
if (g26_repeats < 1) {
SERIAL_PROTOCOLLNPGM("?(R)epeat value not plausible; must be at least 1.");
return UBL_ERR;