Skip to content

Commit

Permalink
Merge pull request #4035 from thinkyhead/rc_lin_advance_feature
Browse files Browse the repository at this point in the history
Patch LIN_ADVANCE to use code_value_float
  • Loading branch information
thinkyhead authored Jun 14, 2016
2 parents b708196 + 2b340f5 commit e7e57f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'};

static int serial_count = 0;

// GCode parameter pointer used by code_seen(), code_value(), etc.
// GCode parameter pointer used by code_seen(), code_value_float(), etc.
static char* seen_pointer;

// Next Immediate GCode Command pointer. NULL if none.
Expand Down
2 changes: 1 addition & 1 deletion Marlin/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ void Stepper::microstep_readings() {
#if ENABLED(LIN_ADVANCE)

void Stepper::advance_M905() {
if (code_seen('K')) extruder_advance_k = code_value();
if (code_seen('K')) extruder_advance_k = code_value_float();
SERIAL_ECHO_START;
SERIAL_ECHOPAIR("Advance factor: ", extruder_advance_k);
SERIAL_EOL;
Expand Down

0 comments on commit e7e57f0

Please sign in to comment.