Browse Source

Warn about MARLIN_DEV_MODE

Scott Lahteine 4 years ago
parent
commit
bd9dc73d3d
1 changed files with 7 additions and 8 deletions
  1. 7
    8
      Marlin/src/inc/SanityCheck.h

+ 7
- 8
Marlin/src/inc/SanityCheck.h View File

@@ -75,6 +75,10 @@
75 75
 #endif
76 76
 #undef HEXIFY
77 77
 
78
+#if ENABLED(MARLIN_DEV_MODE)
79
+  #warning "WARNING! Disable MARLIN_DEV_MODE for the final build!"
80
+#endif
81
+
78 82
 /**
79 83
  * Warnings for old configurations
80 84
  */
@@ -523,16 +527,11 @@
523 527
   #error "ANYCUBIC_TFT_MODEL is now ANYCUBIC_LCD_I3MEGA. Please update your Configuration.h."
524 528
 #elif defined(EVENT_GCODE_SD_STOP)
525 529
   #error "EVENT_GCODE_SD_STOP is now EVENT_GCODE_SD_ABORT. Please update your Configuration.h."
526
-#endif
527
-
528
-#ifdef FIL_RUNOUT_INVERTING
530
+#elif defined(FIL_RUNOUT_INVERTING)
529 531
   #if FIL_RUNOUT_INVERTING
530
-    #warning "FIL_RUNOUT_INVERTING true is now FIL_RUNOUT_STATE HIGH. Please update Configuration.h."
532
+    #error "FIL_RUNOUT_INVERTING true is now FIL_RUNOUT_STATE HIGH. Please update your Configuration.h."
531 533
   #else
532
-    #warning "FIL_RUNOUT_INVERTING false is now FIL_RUNOUT_STATE LOW. Please update Configuration.h."
533
-  #endif
534
-  #ifndef FIL_RUNOUT_STATE
535
-    #define FIL_RUNOUT_STATE ((FIL_RUNOUT_INVERTING) ? HIGH : LOW)
534
+    #error "FIL_RUNOUT_INVERTING false is now FIL_RUNOUT_STATE LOW. Please update your Configuration.h."
536 535
   #endif
537 536
 #endif
538 537
 

Loading…
Cancel
Save