MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 117 forks source link

error compiling by decommenting #define WORKSPACE_OFFSETS #802

Closed mava70 closed 4 years ago

mava70 commented 4 years ago

Issue description

Problem compiling with enabled:

Compile errors

In file included from sketch\MK4duo.h:104:0,

             from C:\Users\marco_t3jnu1h\Desktop\Mk4duo 4.4.0\MK4duo\MK4duo.ino:359:

sketch\src/lib/types.h: In function 'void toLogical(xy_pos_t&)':

sketch\src/lib/types.h:153:52: error: 'mechanics' was not declared in this scope

inline void toLogical(xy_pos_t &raw) { raw += mechanics.workspace_offset; }

                                                ^

sketch\src/lib/types.h: In function 'void toLogical(xyz_pos_t&)':

sketch\src/lib/types.h:154:52: error: 'mechanics' was not declared in this scope

inline void toLogical(xyz_pos_t &raw) { raw += mechanics.workspace_offset; }

                                                ^

sketch\src/lib/types.h: In function 'void toLogical(xyze_pos_t&)':

sketch\src/lib/types.h:155:52: error: 'mechanics' was not declared in this scope

inline void toLogical(xyze_pos_t &raw) { raw += mechanics.workspace_offset; }

                                                ^

sketch\src/lib/types.h: In function 'void toNative(xy_pos_t&)':

sketch\src/lib/types.h:156:52: error: 'mechanics' was not declared in this scope

inline void toNative(xy_pos_t &raw) { raw -= mechanics.workspace_offset; }

                                                ^

sketch\src/lib/types.h: In function 'void toNative(xyz_pos_t&)':

sketch\src/lib/types.h:157:52: error: 'mechanics' was not declared in this scope

inline void toNative(xyz_pos_t &raw) { raw -= mechanics.workspace_offset; }

                                                ^

sketch\src/lib/types.h: In function 'void toNative(xyze_pos_t&)':

sketch\src/lib/types.h:158:52: error: 'mechanics' was not declared in this scope

inline void toNative(xyze_pos_t &raw) { raw -= mechanics.workspace_offset; }

                                                ^

exit status 1 Errore durante la compilazione per la scheda Arduino/Genuino Mega or Mega 2560.

Firmware version

4.4.0

My setup

Error appear by decommenting :

define WORKSPACE_OFFSETS

overall.txt

Please be patient, we'll be trying to help you as soon as possible.

mava70 commented 4 years ago

I can confirm that also by reconfiguring the option with the configurator the compilation problem remain. While reverting back to 4.3.9 compile without problem. I am downgrading to oldest version.