Browse Source

Warning if SDCARD_READONLY should be disabled

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
136b7a5305
  1. 12
      Marlin/src/inc/SanityCheck.h

12
Marlin/src/inc/SanityCheck.h

@ -2182,16 +2182,16 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
#endif #endif
/** /**
* Make sure features that need to write to the SD card are * Make sure features that need to write to the SD card can
* disabled unless write support is enabled.
*/ */
#if ENABLED(SDCARD_READONLY) #if ENABLED(SDCARD_READONLY) && ANY(POWER_LOSS_RECOVERY, BINARY_FILE_TRANSFER, SDCARD_EEPROM_EMULATION)
#undef SDCARD_READONLY
#if ENABLED(POWER_LOSS_RECOVERY) #if ENABLED(POWER_LOSS_RECOVERY)
#error "POWER_LOSS_RECOVERY is incompatible with SDCARD_READONLY." #warning "Either disable SDCARD_READONLY or disable POWER_LOSS_RECOVERY."
#elif ENABLED(BINARY_FILE_TRANSFER) #elif ENABLED(BINARY_FILE_TRANSFER)
#error "BINARY_FILE_TRANSFER is incompatible with SDCARD_READONLY." #warning "Either disable SDCARD_READONLY or disable BINARY_FILE_TRANSFER."
#elif ENABLED(SDCARD_EEPROM_EMULATION) #elif ENABLED(SDCARD_EEPROM_EMULATION)
#error "SDCARD_EEPROM_EMULATION is incompatible with SDCARD_READONLY." #warning "Either disable SDCARD_READONLY or disable SDCARD_EEPROM_EMULATION."
#endif #endif
#endif #endif

Loading…
Cancel
Save