repetier / Repetier-Firmware

Firmware for Arduino based RepRap 3D printer.
815 stars 734 forks source link

Allow importing smaller grid size matrixes, add P<gridsize> parameter #1012

Closed AbsoluteCatalyst closed 4 years ago

AbsoluteCatalyst commented 4 years ago

Think it'd be a good idea in case someone wanted a different grid size at runtime, or wanted to probe slightly faster. (I saw that one topic on the forums.)

GRID_SIZE is now MAX_GRID_SIZE to represent a maximum grid size allocated in memory. Grids smaller than this can now be imported and run. Configurations have been updated to reflect this.

G32 now has a new parameter P which can define how many grid points to measure at run time. Min = 3, Max/omitted = MAX_GRID_SIZE

PS. Should I be updating the version parameter on EEPROM::reserve whenever we do any eeprom additions?

repetier commented 4 years ago

Good idea.

The checksum contains size and version. So if either of them changes it will reinit eeprom anyway. So no need to increase version in this case.