Skip to content

Commit

Permalink
SDSUPPORT (HAS_MEDIA) is also required for XFER_BUILDs
Browse files Browse the repository at this point in the history
SDSUPPORT = HAS_MEDIA, but users shouldn't define HAS_MEDIA directly, so check that SDSUPPORT is enabled.
  • Loading branch information
thisiskeithb committed Jun 10, 2023
1 parent 5038e59 commit 8bb92a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -3988,8 +3988,8 @@ static_assert(_PLUS_TEST(3), "DEFAULT_MAX_ACCELERATION values must be positive."
#endif

// Check requirements for upload.py
#if ENABLED(XFER_BUILD) && !ALL(BINARY_FILE_TRANSFER, CUSTOM_FIRMWARE_UPLOAD)
#error "BINARY_FILE_TRANSFER and CUSTOM_FIRMWARE_UPLOAD are required for custom upload."
#if ENABLED(XFER_BUILD) && !ALL(SDSUPPORT, BINARY_FILE_TRANSFER, CUSTOM_FIRMWARE_UPLOAD)
#error "SDSUPPORT, BINARY_FILE_TRANSFER, and CUSTOM_FIRMWARE_UPLOAD are required for custom upload."
#endif

/**
Expand Down

0 comments on commit 8bb92a7

Please sign in to comment.