Browse Source

Warn about MARLIN_DEV_MODE

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
0070a0642b
  1. 15
      Marlin/src/inc/SanityCheck.h

15
Marlin/src/inc/SanityCheck.h

@ -75,6 +75,10 @@
#endif #endif
#undef HEXIFY #undef HEXIFY
#if ENABLED(MARLIN_DEV_MODE)
#warning "WARNING! Disable MARLIN_DEV_MODE for the final build!"
#endif
/** /**
* Warnings for old configurations * Warnings for old configurations
*/ */
@ -523,16 +527,11 @@
#error "ANYCUBIC_TFT_MODEL is now ANYCUBIC_LCD_I3MEGA. Please update your Configuration.h." #error "ANYCUBIC_TFT_MODEL is now ANYCUBIC_LCD_I3MEGA. Please update your Configuration.h."
#elif defined(EVENT_GCODE_SD_STOP) #elif defined(EVENT_GCODE_SD_STOP)
#error "EVENT_GCODE_SD_STOP is now EVENT_GCODE_SD_ABORT. Please update your Configuration.h." #error "EVENT_GCODE_SD_STOP is now EVENT_GCODE_SD_ABORT. Please update your Configuration.h."
#endif #elif defined(FIL_RUNOUT_INVERTING)
#ifdef FIL_RUNOUT_INVERTING
#if FIL_RUNOUT_INVERTING #if FIL_RUNOUT_INVERTING
#warning "FIL_RUNOUT_INVERTING true is now FIL_RUNOUT_STATE HIGH. Please update Configuration.h." #error "FIL_RUNOUT_INVERTING true is now FIL_RUNOUT_STATE HIGH. Please update your Configuration.h."
#else #else
#warning "FIL_RUNOUT_INVERTING false is now FIL_RUNOUT_STATE LOW. Please update Configuration.h." #error "FIL_RUNOUT_INVERTING false is now FIL_RUNOUT_STATE LOW. Please update your Configuration.h."
#endif
#ifndef FIL_RUNOUT_STATE
#define FIL_RUNOUT_STATE ((FIL_RUNOUT_INVERTING) ? HIGH : LOW)
#endif #endif
#endif #endif

Loading…
Cancel
Save