Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The test for SPI_FLASH_BACKUP is in Marlin/src/inc/Conditionals-3-etc.h
#if ALL(SPI_FLASH, HAS_MEDIA, MARLIN_DEV_MODE)
But SPI_FLASH is set in pins and MARLIN_DEV_MODE is set in Configuration_adv.h
These two are not set before Conditionals-3-etc.h is called.
Moved the test to Marlin/src/inc/Conditionals-5-post.h
Now the the test works as expected M993 and M994 cause a watchdog timout.
So watchdog_refresh was added.
Requirements
A board that has SPI flash (such as BOARD_MKS_ROBIN_NANO_V3_1
MARLIN_DEV_MODE to add M993 aand M994
SDSUPPORT required for these gcodes
Benefits
Builds and works as expected
Related Issues