Skip to content

Commit

Permalink
Add SDCARD_CONNECTION sanity check
Browse files Browse the repository at this point in the history
No LCD-based SD card reader on MKS or BTT SPI TFTs.
  • Loading branch information
thisiskeithb committed Oct 21, 2021
1 parent 9094ae0 commit 4f6fa8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,10 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#error "Please select only one of CHIRON_TFT_STANDARD or CHIRON_TFT_NEW."
#endif

#if (EITHER(MKS_TS35_V2_0, BTT_TFT35_SPI_V1_0) && (SD_CONNECTION_IS(LCD)))
#error "SDCARD_CONNECTION cannot be set to LCD for the enabled TFT. No available SD card reader."
#endif

/**
* Ender 3 V2 controller has some limitations
*/
Expand Down

0 comments on commit 4f6fa8d

Please sign in to comment.