Add LIN_ADVANCE
This commit is contained in:
parent
e2d4919c01
commit
fb8e880734
6 changed files with 178 additions and 3 deletions
|
|
@ -6468,6 +6468,16 @@ inline void gcode_M503() {
|
|||
|
||||
#endif // DUAL_X_CARRIAGE
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
/**
|
||||
* M905: Set advance factor
|
||||
*/
|
||||
inline void gcode_M905() {
|
||||
stepper.synchronize();
|
||||
stepper.advance_M905();
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M907: Set digital trimpot motor current using axis codes X, Y, Z, E, B, S
|
||||
*/
|
||||
|
|
@ -7339,6 +7349,12 @@ void process_next_command() {
|
|||
gcode_M605();
|
||||
break;
|
||||
#endif // DUAL_X_CARRIAGE
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
case 905: // M905 Set advance factor.
|
||||
gcode_M905();
|
||||
break;
|
||||
#endif
|
||||
|
||||
case 907: // M907 Set digital trimpot motor current using axis codes.
|
||||
gcode_M907();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue