Skip to content

[BUG] Compile error when commenting out SPINDLE_LASER_USE_PWM #23166

@tbnobody

Description

@tbnobody

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

Yes, and the problem still exists.

Bug Description

My spindle doesn't use a PWM control. So I commented out SPINDLE_LASER_USE_PWM in Configuration_adv.h

But then I get e.g. the following error message:
Marlin\src\feature\../module/../feature/spindle_laser_types.h:38:13: error: 'SPEED_POWER_MAX' was not declared in this scope

Imho this issue was introduced in this commit: de4eed3#diff-c7a3fa925098d81e51840820898b66e3d3e48f121a83e4d0b6c65e5ab4f2fba0R3400 because SPEED_POWER_MAX is no only defined if SPINDLE_LASER_USE_PWM is enabled.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

2.0.9.2

Printer model

No response

Electronics

No response

Add-ons

No response

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

No response

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