|
@@ -2182,16 +2182,16 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
|
2182
|
2182
|
#endif
|
2183
|
2183
|
|
2184
|
2184
|
/**
|
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
|
2187
|
2186
|
*/
|
2188
|
|
-#if ENABLED(SDCARD_READONLY)
|
|
2187
|
+#if ENABLED(SDCARD_READONLY) && ANY(POWER_LOSS_RECOVERY, BINARY_FILE_TRANSFER, SDCARD_EEPROM_EMULATION)
|
|
2188
|
+ #undef SDCARD_READONLY
|
2189
|
2189
|
#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."
|
2191
|
2191
|
#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."
|
2193
|
2193
|
#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."
|
2195
|
2195
|
#endif
|
2196
|
2196
|
#endif
|
2197
|
2197
|
|