MarlinFirmware / Configurations

Configurations for Marlin Firmware
https://marlinfw.org
GNU General Public License v3.0
1.98k stars 3.33k forks source link

🩹 Fix Formbot T-Rex 3 X2 max position #1057

Closed thisiskeithb closed 3 weeks ago

thisiskeithb commented 1 month ago

Description

While running the build_all_examples script, this config would not build:

In file included from Marlin/src/HAL/AVR/../../inc/MarlinConfigPre.h:56:0,
                 from Marlin/src/HAL/AVR/../../inc/MarlinConfig.h:28,
                 from Marlin/src/HAL/AVR/HAL.cpp:24:
Marlin/src/HAL/AVR/../../inc/../../Configuration_adv.h:827:27: error: floating constant in preprocessor expression
   #define X2_MAX_POS (442-4.0)    // The max position of the X2 carriage, typically also the home position
                           ^

Removing the extra math & float from X2_MAX_POS / setting it to 438 prevents the error and allows the config to build.

Benefits

Config now builds.

Related Issues