Skip to content

[BUG] I can't compile Marlin if I enable FT_MOTION #28105

@tavi79

Description

@tavi79

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

During compilation I get the error: "Marlin\src\module\ft_motion.cpp:555:30: error: 'use_advance_lead' was not declared in this scope"

My solution was to modify 2 files:

ft_motion.h

#if ENABLED(DISTINCT_E_FACTORS)
	static uint8_t block_extruder_axis;  // Cached extruder axis index
	static bool use_advance_lead;		// added by me
#elif HAS_EXTRUDERS
	static constexpr uint8_t block_extruder_axis = E_AXIS;
	static bool use_advance_lead;
#endif

ft_motion.cpp

#if ENABLED(DISTINCT_E_FACTORS)
	uint8_t FTMotion::block_extruder_axis;        // Cached E Axis from last-fetched block
	bool FTMotion::use_advance_lead;		// added by me
#elif HAS_EXTRUDERS
	constexpr uint8_t FTMotion::block_extruder_axis;
	bool FTMotion::use_advance_lead;
#endif

I mention that I have 2 extruders

Bug Timeline

I don't know, I haven't tried to activate the ft_motion function yet.

Expected behavior

To successfully compile marlin firmware.

Actual behavior

During compilation I get the error: "Marlin\src\module\ft_motion.cpp:555:30: error: 'use_advance_lead' was not declared in this scope"

Steps to Reproduce

If I disable the ft_motion function, compilation is executed successfully.
I mention that I have enabled the DISTINCT_E_FACTORS function
if I enable the FT_MOTION function, compilation stops with the error: 'use_advance_lead' was not declared in this scope

Version of Marlin Firmware

Marlin-bugfix-2.1.x

Printer model

custom

Electronics

BTT SKR-3 Rev. 03

LCD/Controller

BTT TFT43 V3.0

Other add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Marlin.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions