Skip to content

[BUG] X_HEAD undeclared compiler errors #22167

Closed
@HoverClub

Description

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

Yes, and the problem still exists.

Bug Description

Multiple Compiler errors similar to:
Marlin/src/module/endstops.cpp: In static member function 'static void Endstops::update()':
Marlin/src/module/endstops.cpp:623:25: error: 'X_HEAD' was not declared in this scope
#define X_AXIS_HEAD X_HEAD

Bug Timeline

Today.

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

  1. Set Machine type to MarkForged_XY
  2. Set axis to 3
  3. Complie

Version of Marlin Firmware

2.0.9

Printer model

No response

Electronics

MKS Gen-L

Add-ons

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

Editing line 86 of types.h seems to fix the issue (not tested on a real machine yet!).
config.zip

Change:
#if IS_CORE
to:
#if EITHER(IS_CORE, MARKFORGED_XY)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions