Skip to content

Commit 4db32d0

Browse files
thinkyheadvgadreau
authored andcommitted
Warning if SDCARD_READONLY should be disabled
1 parent c9e118c commit 4db32d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Marlin/src/inc/SanityCheck.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -2182,16 +2182,16 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
21822182
#endif
21832183

21842184
/**
2185-
* Make sure features that need to write to the SD card are
2186-
* disabled unless write support is enabled.
2185+
* Make sure features that need to write to the SD card can
21872186
*/
2188-
#if ENABLED(SDCARD_READONLY)
2187+
#if ENABLED(SDCARD_READONLY) && ANY(POWER_LOSS_RECOVERY, BINARY_FILE_TRANSFER, SDCARD_EEPROM_EMULATION)
2188+
#undef SDCARD_READONLY
21892189
#if ENABLED(POWER_LOSS_RECOVERY)
2190-
#error "POWER_LOSS_RECOVERY is incompatible with SDCARD_READONLY."
2190+
#warning "Either disable SDCARD_READONLY or disable POWER_LOSS_RECOVERY."
21912191
#elif ENABLED(BINARY_FILE_TRANSFER)
2192-
#error "BINARY_FILE_TRANSFER is incompatible with SDCARD_READONLY."
2192+
#warning "Either disable SDCARD_READONLY or disable BINARY_FILE_TRANSFER."
21932193
#elif ENABLED(SDCARD_EEPROM_EMULATION)
2194-
#error "SDCARD_EEPROM_EMULATION is incompatible with SDCARD_READONLY."
2194+
#warning "Either disable SDCARD_READONLY or disable SDCARD_EEPROM_EMULATION."
21952195
#endif
21962196
#endif
21972197

0 commit comments

Comments
 (0)