Marlin-A4MaxPro-2.0.x icon indicating copy to clipboard operation
Marlin-A4MaxPro-2.0.x copied to clipboard

[BUG] Compilation error with defined CASE_LIGHT_NO_BRIGHTNESS

Open ABATAPA opened this issue 3 years ago • 1 comments

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 3b083dd8a update to marlin 2.0.5.4

ABATAPA avatar Jul 29 '20 16:07 ABATAPA