|
@@ -1234,6 +1234,21 @@ void setup()
|
|
|
plan_init();
|
|
|
|
|
|
factory_reset();
|
|
|
+ if (eeprom_read_dword((uint32_t*)(EEPROM_TOP - 4)) == 0x0ffffffff &&
|
|
|
+ eeprom_read_dword((uint32_t*)(EEPROM_TOP - 8)) == 0x0ffffffff)
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#ifdef TMC2130
|
|
|
+ eeprom_write_byte((uint8_t*)EEPROM_SILENT, 0);
|
|
|
+ tmc2130_mode = TMC2130_MODE_NORMAL;
|
|
|
+#endif
|
|
|
+ eeprom_write_byte((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);
|
|
|
+ }
|
|
|
+
|
|
|
lcd_encoder_diff=0;
|
|
|
|
|
|
#ifdef TMC2130
|
|
@@ -1345,20 +1360,6 @@ void setup()
|
|
|
|
|
|
card.ToshibaFlashAir_enable(eeprom_read_byte((unsigned char*)EEPROM_TOSHIBA_FLASH_AIR_COMPATIBLITY) == 1);
|
|
|
|
|
|
- if (eeprom_read_dword((uint32_t*)(EEPROM_TOP - 4)) == 0x0ffffffff &&
|
|
|
- eeprom_read_dword((uint32_t*)(EEPROM_TOP - 8)) == 0x0ffffffff) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-#ifdef TMC2130
|
|
|
- eeprom_write_byte((uint8_t*)EEPROM_SILENT, 0);
|
|
|
- tmc2130_mode = TMC2130_MODE_NORMAL;
|
|
|
-#endif
|
|
|
- eeprom_write_byte((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
card.initsd();
|