🔧 Sanity-check PRINTCOUNTER_SAVE_INTERVAL + ESP32 I2S Exp (#25527)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
5abfc6160f
commit
6f2d8a3872
|
@ -56,3 +56,7 @@
|
||||||
#if BOTH(I2S_STEPPER_STREAM, LIN_ADVANCE) && DISABLED(EXPERIMENTAL_I2S_LA)
|
#if BOTH(I2S_STEPPER_STREAM, LIN_ADVANCE) && DISABLED(EXPERIMENTAL_I2S_LA)
|
||||||
#error "I2S stream is currently incompatible with LIN_ADVANCE."
|
#error "I2S stream is currently incompatible with LIN_ADVANCE."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if BOTH(I2S_STEPPER_STREAM, PRINTCOUNTER) && PRINTCOUNTER_SAVE_INTERVAL > 0 && DISABLED(PRINTCOUNTER_SYNC)
|
||||||
|
#error "PRINTCOUNTER_SAVE_INTERVAL may cause issues on ESP32 with an I2S expander. Define PRINTCOUNTER_SYNC in Configuration.h for an imperfect solution."
|
||||||
|
#endif
|
||||||
|
|
|
@ -30,5 +30,5 @@
|
||||||
// LPC1768 boards seem to lose steps when saving to EEPROM during print (issue #20785)
|
// LPC1768 boards seem to lose steps when saving to EEPROM during print (issue #20785)
|
||||||
// TODO: Which other boards are incompatible?
|
// TODO: Which other boards are incompatible?
|
||||||
#if defined(MCU_LPC1768) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
|
#if defined(MCU_LPC1768) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
|
||||||
#define PRINTCOUNTER_SYNC 1
|
#define PRINTCOUNTER_SYNC
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -30,5 +30,5 @@
|
||||||
|
|
||||||
// Some STM32F4 boards may lose steps when saving to EEPROM during print (PR #17946)
|
// Some STM32F4 boards may lose steps when saving to EEPROM during print (PR #17946)
|
||||||
#if defined(STM32F4xx) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
|
#if defined(STM32F4xx) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
|
||||||
#define PRINTCOUNTER_SYNC 1
|
#define PRINTCOUNTER_SYNC
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -715,7 +715,7 @@
|
||||||
#warning "Creality 4.2.2 boards come with a variety of stepper drivers. Check the board label (typically on SD Card module) and set the correct *_DRIVER_TYPE! (C=HR4988, E=A4988, A=TMC2208, B=TMC2209, H=TMC2225, H8=HR4988). (Define NO_CREALITY_422_DRIVER_WARNING to suppress this warning.)"
|
#warning "Creality 4.2.2 boards come with a variety of stepper drivers. Check the board label (typically on SD Card module) and set the correct *_DRIVER_TYPE! (C=HR4988, E=A4988, A=TMC2208, B=TMC2209, H=TMC2225, H8=HR4988). (Define NO_CREALITY_422_DRIVER_WARNING to suppress this warning.)"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PRINTCOUNTER_SYNC
|
#if ENABLED(PRINTCOUNTER_SYNC)
|
||||||
#warning "To prevent step loss, motion will pause for PRINTCOUNTER auto-save."
|
#warning "To prevent step loss, motion will pause for PRINTCOUNTER auto-save."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ Stopwatch print_job_timer; // Global Print Job Timer instance
|
||||||
#include "../libs/buzzer.h"
|
#include "../libs/buzzer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PRINTCOUNTER_SYNC
|
#if ENABLED(PRINTCOUNTER_SYNC)
|
||||||
#include "../module/planner.h"
|
#include "../module/planner.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue