Browse Source

Warning if SDCARD_READONLY should be disabled

Scott Lahteine 4 years ago
parent
commit
21ee7be30a
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      Marlin/src/inc/SanityCheck.h

+ 6
- 6
Marlin/src/inc/SanityCheck.h View File

2182
 #endif
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
   #if ENABLED(POWER_LOSS_RECOVERY)
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
   #elif ENABLED(BINARY_FILE_TRANSFER)
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
   #elif ENABLED(SDCARD_EEPROM_EMULATION)
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
   #endif
2195
   #endif
2196
 #endif
2196
 #endif
2197
 
2197
 

Loading…
Cancel
Save