Bladeren bron

🔧 Check Chiron LCD requirements (#23353)

Co-Authored-By: EvilGremlin <22657714+EvilGremlin@users.noreply.github.com>
EvilGremlin 2 jaren geleden
bovenliggende
commit
7762df7251
No account linked to committer's email address

+ 14
- 0
Marlin/src/inc/SanityCheck.h Bestand weergeven

@@ -2765,6 +2765,20 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
2765 2765
   #error "Please select only one of CHIRON_TFT_STANDARD or CHIRON_TFT_NEW."
2766 2766
 #endif
2767 2767
 
2768
+#if ENABLED(ANYCUBIC_LCD_CHIRON)
2769
+  #if !defined(BEEPER_PIN)
2770
+    #error "ANYCUBIC_LCD_CHIRON requires BEEPER_PIN"
2771
+  #elif DISABLED(SDSUPPORT)
2772
+    #error "ANYCUBIC_LCD_CHIRON requires SDSUPPORT"
2773
+  #elif TEMP_SENSOR_BED == 0
2774
+    #error "ANYCUBIC_LCD_CHIRON requires heatbed (TEMP_SENSOR_BED)"
2775
+  #elif NONE(AUTO_BED_LEVELING_BILINEAR, AUTO_BED_LEVELING_UBL, MESH_BED_LEVELING)
2776
+    #error "ANYCUBIC_LCD_CHIRON requires one of: AUTO_BED_LEVELING_BILINEAR, AUTO_BED_LEVELING_UBL or MESH_BED_LEVELING"
2777
+  #elif DISABLED(BABYSTEPPING)
2778
+    #error "ANYCUBIC_LCD_CHIRON requires BABYSTEPPING"
2779
+  #endif
2780
+#endif
2781
+
2768 2782
 #if EITHER(MKS_TS35_V2_0, BTT_TFT35_SPI_V1_0) && SD_CONNECTION_IS(LCD)
2769 2783
   #error "SDCARD_CONNECTION cannot be set to LCD for the enabled TFT. No available SD card reader."
2770 2784
 #endif

+ 1
- 1
Marlin/src/lcd/extui/anycubic_chiron/chiron_tft.cpp Bestand weergeven

@@ -243,7 +243,7 @@ void ChironTFT::StatusChange(const char * const msg)  {
243 243
     case AC_printer_probing: {
244 244
       // If probing completes ok save the mesh and park
245 245
       // Ignore the custom machine name
246
-      if (strcmp_P(msg + strlen(CUSTOM_MACHINE_NAME), MARLIN_msg_ready) == 0) {
246
+      if (strcmp_P(msg + strlen(MACHINE_NAME), MARLIN_msg_ready) == 0) {
247 247
         injectCommands(F("M500\nG27"));
248 248
         SendtoTFTLN(AC_msg_probing_complete);
249 249
         printer_state = AC_printer_idle;

+ 2
- 2
Marlin/src/lcd/extui/ftdi_eve_touch_ui/generic/about_screen.cpp Bestand weergeven

@@ -69,8 +69,8 @@ void AboutScreen::onRedraw(draw_mode_t) {
69 69
   #endif
70 70
 
71 71
   draw_text_box(cmd, HEADING_POS,
72
-    #ifdef CUSTOM_MACHINE_NAME
73
-      F(CUSTOM_MACHINE_NAME)
72
+    #ifdef MACHINE_NAME
73
+      F(MACHINE_NAME)
74 74
     #else
75 75
       GET_TEXT_F(MSG_ABOUT_TOUCH_PANEL_1)
76 76
     #endif

Laden…
Annuleren
Opslaan