Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation broken if AUTO_BED_LEVELING_FEATURE is enabled - RCBugFix #3100

Closed
WheresWaldo opened this issue Mar 6, 2016 · 3 comments
Closed

Comments

@WheresWaldo
Copy link

RCBugFix branch, pulled from zip file 06_MAR_2016.

Since merging pull request #2995 if AUTO_BED_LEVELING_FEATURE is uncommented (enabled) the compilation fails with the following error:

Arduino: 1.6.7 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
sketch\Marlin_main.cpp: In function 'void run_z_probe()':
Marlin_main.cpp:1334: error: 'st_get_axis_position_mm' was not declared in this scope
       zPosition = st_get_axis_position_mm(Z_AXIS);
                                                 ^
sketch\Marlin_main.cpp: In function 'void gcode_G29()':
Marlin_main.cpp:3158: error: 'st_get_axis_position_mm' was not declared in this scope
               real_z = st_get_axis_position_mm(Z_AXIS);  //get the real Z (since plan_get_position is now correcting the plane)
                                                      ^
sketch\Marlin_main.cpp: In function 'void gcode_M48()':
Marlin_main.cpp:3605: error: 'st_get_axis_position_mm' was not declared in this scope
     double X_current = st_get_axis_position_mm(X_AXIS),
                                                      ^
Marlin_main.cpp:3615: error: 'X_probe_location' was not declared in this scope
       X_probe_location = code_value() - X_PROBE_OFFSET_FROM_EXTRUDER;
       ^
Marlin_main.cpp:3623: error: 'Y_probe_location' was not declared in this scope
       Y_probe_location = code_value() -  Y_PROBE_OFFSET_FROM_EXTRUDER;
       ^
Marlin_main.cpp:3645: error: 'Y_current' was not declared in this scope
     plan_buffer_line(X_current, Y_current, Z_start_location, E_current, homing_feedrate[Z_AXIS] / 60, active_extruder);
                                 ^
Marlin_main.cpp:3645: error: 'Z_start_location' was not declared in this scope
     plan_buffer_line(X_current, Y_current, Z_start_location, E_current, homing_feedrate[Z_AXIS] / 60, active_extruder);
                                            ^
Marlin_main.cpp:3645: error: 'E_current' was not declared in this scope
     plan_buffer_line(X_current, Y_current, Z_start_location, E_current, homing_feedrate[Z_AXIS] / 60, active_extruder);
                                                              ^
Marlin_main.cpp:3656: error: 'X_probe_location' was not declared in this scope
     plan_buffer_line(X_probe_location, Y_probe_location, Z_start_location,
                      ^
Marlin_main.cpp:3656: error: 'Y_probe_location' was not declared in this scope
     plan_buffer_line(X_probe_location, Y_probe_location, Z_start_location,
                                        ^
Marlin_main.cpp:3664: error: 'Z_current' was not declared in this scope
     current_position[Z_AXIS] = Z_current = st_get_axis_position_mm(Z_AXIS);
                                ^
exit status 1
'st_get_axis_position_mm' was not declared in this scope
  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

No other changes made to Configuration.h. Tested on Mendel90 machine. so COREXY and COREXZ remained commented (disabled).

@thinkyhead
Copy link
Member

Try it now with #3101 merged. The error should be fixed. Not sure if this is due to a regression. The code tested ok in the past.

@jbrazio
Copy link
Contributor

jbrazio commented Mar 6, 2016

#3101 fixed the issue, it compiles flawlessly.

Sketch uses 122,382 bytes (48%) of program storage space. Maximum is 253,952 bytes.
Global variables use 4,952 bytes (60%) of dynamic memory, leaving 3,240 bytes for local variables. Maximum is 8,192 bytes.

@jbrazio jbrazio modified the milestone: 1.1.0 Jul 16, 2016
@github-actions
Copy link

github-actions bot commented Apr 6, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants