Browse Source

Merge pull request #3219 from AnHardt/RH-pos-update

Send position updates to RH
Scott Lahteine 9 years ago
parent
commit
7d55d86081
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      Marlin/Marlin_main.cpp

+ 10
- 0
Marlin/Marlin_main.cpp View File

461
 void serial_echopair_P(const char* s_P, double v)        { serialprintPGM(s_P); SERIAL_ECHO(v); }
461
 void serial_echopair_P(const char* s_P, double v)        { serialprintPGM(s_P); SERIAL_ECHO(v); }
462
 void serial_echopair_P(const char* s_P, unsigned long v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
462
 void serial_echopair_P(const char* s_P, unsigned long v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
463
 
463
 
464
+void gcode_M114();
465
+
464
 #if ENABLED(PREVENT_DANGEROUS_EXTRUDE)
466
 #if ENABLED(PREVENT_DANGEROUS_EXTRUDE)
465
   float extrude_min_temp = EXTRUDE_MINTEMP;
467
   float extrude_min_temp = EXTRUDE_MINTEMP;
466
 #endif
468
 #endif
2696
     }
2698
     }
2697
   #endif
2699
   #endif
2698
 
2700
 
2701
+  gcode_M114(); // Send end position to RepetierHost
2702
+
2699
 }
2703
 }
2700
 
2704
 
2701
 #if ENABLED(MESH_BED_LEVELING)
2705
 #if ENABLED(MESH_BED_LEVELING)
3332
       }
3336
       }
3333
     #endif
3337
     #endif
3334
 
3338
 
3339
+    gcode_M114(); // Send end position to RepetierHost
3340
+
3335
   }
3341
   }
3336
 
3342
 
3337
   #if DISABLED(Z_PROBE_SLED) // could be avoided
3343
   #if DISABLED(Z_PROBE_SLED) // could be avoided
3366
         raise_z_for_servo();
3372
         raise_z_for_servo();
3367
       #endif
3373
       #endif
3368
       stow_z_probe(false); // Retract Z Servo endstop if available. Z_PROBE_SLED is missed her.
3374
       stow_z_probe(false); // Retract Z Servo endstop if available. Z_PROBE_SLED is missed her.
3375
+    
3376
+      gcode_M114(); // Send end position to RepetierHost
3369
     }
3377
     }
3370
 
3378
 
3371
   #endif //!Z_PROBE_SLED
3379
   #endif //!Z_PROBE_SLED
3932
     delay(25);
3940
     delay(25);
3933
 
3941
 
3934
     clean_up_after_endstop_move();
3942
     clean_up_after_endstop_move();
3943
+  
3944
+    gcode_M114(); // Send end position to RepetierHost
3935
   }
3945
   }
3936
 
3946
 
3937
 #endif // AUTO_BED_LEVELING_FEATURE && Z_MIN_PROBE_REPEATABILITY_TEST
3947
 #endif // AUTO_BED_LEVELING_FEATURE && Z_MIN_PROBE_REPEATABILITY_TEST

Loading…
Cancel
Save