Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

[BUG] Compilation error with defined CASE_LIGHT_NO_BRIGHTNESS #44

@ABATAPA

Description

@ABATAPA

When CASE_LIGHT_NO_BRIGHTNESS is defined in Configuration_adv.h, compilation is aborted with an error:

sketch/src/lcd/extui/lib/dwin/DwinTFTCommand.cpp: In member function 'void DwinTFTCommandClass::handleSetCaseLight()':
sketch/src/lcd/extui/lib/dwin/DwinTFTCommand.cpp:600:29: error: 'getCaseLightBrightness_percent' is not a member of 'ExtUI'
   float brightness = ExtUI::getCaseLightBrightness_percent();
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sketch/src/lcd/extui/lib/dwin/DwinTFTCommand.cpp:600:29: note: suggested alternative: 'getProgress_percent'
   float brightness = ExtUI::getCaseLightBrightness_percent();
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                             getProgress_percent
sketch/src/lcd/extui/lib/dwin/DwinTFTCommand.cpp:601:10: error: 'setCaseLightBrightness_percent' is not a member of 'ExtUI'
   ExtUI::setCaseLightBrightness_percent(float(brightness == 100 ? 0 : brightness + 25));
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sketch/src/lcd/extui/lib/dwin/DwinTFTCommand.cpp:601:10: note: suggested alternative: 'setFeedrate_percent'
   ExtUI::setCaseLightBrightness_percent(float(brightness == 100 ? 0 : brightness + 25));
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          setFeedrate_percent
exit status 1

I am trying to compile the firmware without PWM highlighting, because it flickers when printing (soft PWM?).

Arduino IDE 1.8.13 / master 3b083dd update to marlin 2.0.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions