M421: Add 'adjust closest point' capability

- Split M421 into separate versions for bilinear and ubl
- Fix minor issue in G26
This commit is contained in:
Brian
2017-05-11 12:10:38 -04:00
parent 2819228d4f
commit ae676490c9
4 changed files with 61 additions and 21 deletions

View File

@ -740,12 +740,14 @@
}
if (code_seen('R')) {
g26_repeats = code_has_value() ? code_value_int() - 1 : 999;
g26_repeats = code_has_value() ? code_value_int() : 999;
if (g26_repeats <= 0) {
SERIAL_PROTOCOLLNPGM("?(R)epeat value not plausible; must be greater than 0.");
return UBL_ERR;
}
g26_repeats--;
}