Переглянути джерело

🐛 Fix Arduino build issues (#23510)

ellensp 3 роки тому
джерело
коміт
a058a8a8b2
Аккаунт користувача з таким Email не знайдено

+ 6
- 0
Marlin/src/lcd/e3v2/enhanced/dwin_popup.cpp Переглянути файл

@@ -27,6 +27,10 @@
27 27
  * Date: 2021/11/06
28 28
  */
29 29
 
30
+#include "../../../inc/MarlinConfigPre.h"
31
+
32
+#if ENABLED(DWIN_CREALITY_LCD_ENHANCED)
33
+
30 34
 #include "dwin.h"
31 35
 #include "dwin_popup.h"
32 36
 
@@ -53,3 +57,5 @@ void DWIN_Popup_ConfirmCancel(const uint8_t icon, FSTR_P const fmsg2) {
53 57
   Draw_Select_Highlight(true);
54 58
   DWIN_UpdateLCD();
55 59
 }
60
+
61
+#endif // DWIN_CREALITY_LCD_ENHANCED

+ 3
- 3
Marlin/src/module/probe.h Переглянути файл

@@ -212,14 +212,14 @@ public:
212 212
 
213 213
     // constexpr helpers used in build-time static_asserts, relying on default probe offsets.
214 214
     class build_time {
215
-      static constexpr xyz_pos_t default_probe_xyz_offset =
215
+      static constexpr xyz_pos_t default_probe_xyz_offset = xyz_pos_t(
216 216
         #if HAS_BED_PROBE
217 217
           NOZZLE_TO_PROBE_OFFSET
218 218
         #else
219 219
           { 0 }
220 220
         #endif
221
-      ;
222
-      static constexpr xy_pos_t default_probe_xy_offset = { default_probe_xyz_offset.x,  default_probe_xyz_offset.y };
221
+      );
222
+      static constexpr xy_pos_t default_probe_xy_offset = xy_pos_t({ default_probe_xyz_offset.x,  default_probe_xyz_offset.y });
223 223
 
224 224
     public:
225 225
       static constexpr bool can_reach(float x, float y) {

Завантаження…
Відмінити
Зберегти