Procházet zdrojové kódy

Always synchronize in Stepper::set_position

Scott Lahteine před 8 roky
rodič
revize
7dec8071b2
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3
    0
      Marlin/stepper.cpp

+ 3
- 0
Marlin/stepper.cpp Zobrazit soubor

936
  * derive the current XYZ position later on.
936
  * derive the current XYZ position later on.
937
  */
937
  */
938
 void Stepper::set_position(const long& x, const long& y, const long& z, const long& e) {
938
 void Stepper::set_position(const long& x, const long& y, const long& z, const long& e) {
939
+
940
+  synchronize(); // Bad to set stepper counts in the middle of a move
941
+
939
   CRITICAL_SECTION_START;
942
   CRITICAL_SECTION_START;
940
 
943
 
941
   #if ENABLED(COREXY)
944
   #if ENABLED(COREXY)

Loading…
Zrušit
Uložit