Browse Source

Merge pull request #4035 from thinkyhead/rc_lin_advance_feature

Patch LIN_ADVANCE to use code_value_float
Scott Lahteine 8 years ago
parent
commit
e7e57f0eb4
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp
  2. 1
    1
      Marlin/stepper.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

333
 
333
 
334
 static int serial_count = 0;
334
 static int serial_count = 0;
335
 
335
 
336
-// GCode parameter pointer used by code_seen(), code_value(), etc.
336
+// GCode parameter pointer used by code_seen(), code_value_float(), etc.
337
 static char* seen_pointer;
337
 static char* seen_pointer;
338
 
338
 
339
 // Next Immediate GCode Command pointer. NULL if none.
339
 // Next Immediate GCode Command pointer. NULL if none.

+ 1
- 1
Marlin/stepper.cpp View File

1124
 #if ENABLED(LIN_ADVANCE)
1124
 #if ENABLED(LIN_ADVANCE)
1125
 
1125
 
1126
   void Stepper::advance_M905() {
1126
   void Stepper::advance_M905() {
1127
-    if (code_seen('K')) extruder_advance_k = code_value();
1127
+    if (code_seen('K')) extruder_advance_k = code_value_float();
1128
     SERIAL_ECHO_START;
1128
     SERIAL_ECHO_START;
1129
     SERIAL_ECHOPAIR("Advance factor: ", extruder_advance_k);
1129
     SERIAL_ECHOPAIR("Advance factor: ", extruder_advance_k);
1130
     SERIAL_EOL;
1130
     SERIAL_EOL;

Loading…
Cancel
Save