Parse M905 args in Marlin_main.cpp
This commit is contained in:
parent
e7e57f0eb4
commit
8d8180e028
3 changed files with 4 additions and 4 deletions
|
|
@ -1123,8 +1123,8 @@ void Stepper::microstep_readings() {
|
|||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
|
||||
void Stepper::advance_M905() {
|
||||
if (code_seen('K')) extruder_advance_k = code_value_float();
|
||||
void Stepper::advance_M905(const float &k) {
|
||||
if (k >= 0) extruder_advance_k = k;
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHOPAIR("Advance factor: ", extruder_advance_k);
|
||||
SERIAL_EOL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue