Closed Ale11Re closed 5 months ago
The ExtUI headers are not included...
apply this diff
diff --git a/Marlin/src/feature/powerloss.cpp b/Marlin/src/feature/powerloss.cpp
index 86e6b780bd..69e23f4a32 100644
--- a/Marlin/src/feature/powerloss.cpp
+++ b/Marlin/src/feature/powerloss.cpp
@@ -31,6 +31,10 @@
#include "powerloss.h"
#include "../core/macros.h"
+#if ENABLED(EXTENSIBLE_UI)
+ #include "../lcd/extui/ui_api.h"
+#endif
+
bool PrintJobRecovery::enabled; // Initialized by settings.load()
MediaFile PrintJobRecovery::file;
Issue is not present in bugfix 2.1.x
My bad, if not present in bugfix I screwed up something else
Closing since this is already fixed in bugfix-2.1.x
.
Patch for 2.1.x
submitted:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
When selecting DGUS_LCD_UIRELOADED to compile with CR10s Pro. I'm providing my configurations. It does compile with Marlin 2.1.2.1. I did also try with latest Marlin bugfix 2.1.x but does not compile due to other errors. Compilation error: ExtUI not defined. When commenting line 111 of /src/feature/powerloss.cpp "TERN(EXTENSIBLE_UI, ExtUI::onSetPowerLoss(enabled));" It compiles fine.
Bug Timeline
No response
Expected behavior
Expect Marlin 2.1.2.2 to compile
Actual behavior
Marlin 2.1.2.2 won't compile
Steps to Reproduce
With
Version of Marlin Firmware
2.1.2.2
Printer model
Creality CR10S Pro
Electronics
No response
LCD/Controller
DGUS_LCD_UI_RELOADED
Other add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Conf.zip