stage: use -1 when defining ints to be retried from eeprom
On platforms without EEPROM (pico) DummyEEPROM returns the current value, so this is needed to set the default correctly.
This commit is contained in:
parent
7add8d026a
commit
1dad7799ef
1 changed files with 2 additions and 2 deletions
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
// The array below has 3 stepper objects, for X,Y,Z respectively
|
||||
const uint8_t n_motors = 3;
|
||||
long min_step_delay;
|
||||
long min_step_delay = -1;
|
||||
const uint8_t min_step_delay_eeprom = sizeof(long) * n_motors;
|
||||
long ramp_time;
|
||||
long ramp_time = -1;
|
||||
const uint8_t ramp_time_eeprom = sizeof(long) * (n_motors + 1);
|
||||
const uint8_t axis_max_eeprom = sizeof(long) * (n_motors + 2);
|
||||
const uint8_t non_blocking_moves_eeprom = sizeof(long) * (n_motors + 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue