MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.29k stars 19.24k forks source link

compling board issues auto bed level stable 1.02 #1628

Closed tris1986 closed 9 years ago

tris1986 commented 9 years ago

Arduino: 1.6.1 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from Marlin.h:22:0,

             from BlinkM.cpp:5:

Configuration.h:397:41: error: floating constant in preprocessor expression

define X_PROBE_OFFSET_FROM_EXTRUDER -21.60

                                     ^

Configuration.h:437:9: note: in expansion of macro 'X_PROBE_OFFSET_FROM_EXTRUDER'

 #if X_PROBE_OFFSET_FROM_EXTRUDER < 0

     ^

Configuration.h:397:41: error: floating constant in preprocessor expression

define X_PROBE_OFFSET_FROM_EXTRUDER -21.60

                                     ^

Configuration.h:442:13: note: in expansion of macro 'X_PROBE_OFFSET_FROM_EXTRUDER'

   #if ((X_PROBE_OFFSET_FROM_EXTRUDER * AUTO_BED_LEVELING_GRID_POINTS) >= (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION))

         ^

Configuration.h:398:41: error: floating constant in preprocessor expression

define Y_PROBE_OFFSET_FROM_EXTRUDER -3.80

                                     ^

Configuration.h:446:9: note: in expansion of macro 'Y_PROBE_OFFSET_FROM_EXTRUDER'

 #if Y_PROBE_OFFSET_FROM_EXTRUDER < 0

     ^

Configuration.h:398:41: error: floating constant in preprocessor expression

define Y_PROBE_OFFSET_FROM_EXTRUDER -3.80

                                     ^

Configuration.h:451:13: note: in expansion of macro 'Y_PROBE_OFFSET_FROM_EXTRUDER'

   #if ((Y_PROBE_OFFSET_FROM_EXTRUDER * AUTO_BED_LEVELING_GRID_POINTS) >= (BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION))

         ^

Error compiling.

This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

AnHardt commented 9 years ago

@tris1986 Please read: https://github.com/MarlinFirmware/Marlin/blob/Development/Marlin/Configuration.h#L434

boelle commented 9 years ago

also stable 1.02

we don't have a stable version yet so we assume you use 1.0.2

you should use the latest code as there are many fixes: https://github.com/MarlinFirmware/Marlin/archive/Development.zip

avluis commented 9 years ago

@tris1986 as @AnHardt mentioned - keep your X & Y probe offsets as integers (no decimal values, no need to be precise). Z offset can be as precise as needed - and you can tweak it on your slicer software as well.

@boelle This can be closed as it is a configuration error and not a programming error.

boelle commented 9 years ago

oki doki :-D

github-actions[bot] commented 2 years ago

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.