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:
Filip Ayazi 2021-07-18 04:48:46 +01:00
parent 7add8d026a
commit 1dad7799ef

View file

@ -11,9 +11,9 @@
// The array below has 3 stepper objects, for X,Y,Z respectively // The array below has 3 stepper objects, for X,Y,Z respectively
const uint8_t n_motors = 3; 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; 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 ramp_time_eeprom = sizeof(long) * (n_motors + 1);
const uint8_t axis_max_eeprom = sizeof(long) * (n_motors + 2); const uint8_t axis_max_eeprom = sizeof(long) * (n_motors + 2);
const uint8_t non_blocking_moves_eeprom = sizeof(long) * (n_motors + 3); const uint8_t non_blocking_moves_eeprom = sizeof(long) * (n_motors + 3);