"One Click" Print newest file (#25781)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
ellensp
2023-05-15 13:48:55 +12:00
committed by GitHub
parent d17d86d6a5
commit 2e24637bd6
11 changed files with 176 additions and 20 deletions

View File

@@ -4044,6 +4044,19 @@ static_assert(_PLUS_TEST(3), "DEFAULT_MAX_ACCELERATION values must be positive."
// Multi-Stepping Limit
static_assert(WITHIN(MULTISTEPPING_LIMIT, 1, 128) && IS_POWER_OF_2(MULTISTEPPING_LIMIT), "MULTISTEPPING_LIMIT must be 1, 2, 4, 8, 16, 32, 64, or 128.");
// One Click Print
#if ENABLED(ONE_CLICK_PRINT)
#if !HAS_MEDIA
#error "SD Card or Flash Drive is required for ONE_CLICK_PRINT."
#elif ENABLED(BROWSE_MEDIA_ON_INSERT)
#error "ONE_CLICK_PRINT is incompatible with BROWSE_MEDIA_ON_INSERT."
#elif DISABLED(NO_SD_AUTOSTART)
#error "NO_SD_AUTOSTART must be enabled for ONE_CLICK_PRINT."
#elif !defined(HAS_MARLINUI_MENU)
#error "ONE_CLICK_PRINT needs a display that has Marlin UI menus."
#endif
#endif
// Misc. Cleanup
#undef _TEST_PWM
#undef _NUM_AXES_STR