Forráskód Böngészése

Reset sdpos_atomic when starting a new SD print

Fix an incorrect SD offset on the first G-Code command when the second
SD print is started.
Yuri D'Elia 2 éve
szülő
commit
a533ba3574
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      Firmware/Marlin_main.cpp

+ 2 - 0
Firmware/Marlin_main.cpp

@@ -5675,6 +5675,7 @@ eeprom_update_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM,0xFFFF);
           {
               // A new print has started from scratch, reset stats
               failstats_reset_print();
+              sdpos_atomic = 0;
 #ifndef LA_NOCOMPAT
               la10c_reset();
 #endif
@@ -5802,6 +5803,7 @@ eeprom_update_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM,0xFFFF);
             {
                 // A new print has started from scratch, reset stats
                 failstats_reset_print();
+                sdpos_atomic = 0;
 #ifndef LA_NOCOMPAT
                 la10c_reset();
 #endif