Define GRID_MAX_POINTS
This commit is contained in:
parent
b17e2d3dcd
commit
233f824dd6
5 changed files with 17 additions and 20 deletions
|
|
@ -1048,8 +1048,8 @@
|
|||
|
||||
repeat_flag = code_seen('R');
|
||||
if (repeat_flag) {
|
||||
repetition_cnt = code_has_value() ? code_value_int() : (GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y);
|
||||
repetition_cnt = min(repetition_cnt, (GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y));
|
||||
repetition_cnt = code_has_value() ? code_value_int() : GRID_MAX_POINTS;
|
||||
NOMORE(repetition_cnt, GRID_MAX_POINTS);
|
||||
if (repetition_cnt < 1) {
|
||||
SERIAL_PROTOCOLLNPGM("?(R)epetition count invalid (1+).\n");
|
||||
return UBL_ERR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue