Просмотр исходного кода

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!
Roxy-3D 8 лет назад
Родитель
Сommit
c06af63f87
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 1
- 1
Marlin/G26_Mesh_Validation_Tool.cpp Просмотреть файл

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

Загрузка…
Отмена
Сохранить