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
Thanks for the report, the method "DwinTFTCommandClass::handleSetCaseLight()" still has to be provided with an if statement in order to catch the case that "CASE_LIGHT_NO_BRIGHTNESS" is set.
When CASE_LIGHT_NO_BRIGHTNESS is defined in Configuration_adv.h, compilation is aborted with an error:
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