Browse Source

️ Only Sync Emulated EEPROM Print Counter (#24731)

FB4S_WIFI^2^2
Keith Bennett 2 years ago
committed by Scott Lahteine
parent
commit
03aba439f6
  1. 2
      Marlin/src/HAL/LPC1768/inc/Conditionals_post.h
  2. 2
      Marlin/src/HAL/STM32/inc/Conditionals_post.h

2
Marlin/src/HAL/LPC1768/inc/Conditionals_post.h

@ -29,6 +29,6 @@
// 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) && PRINTCOUNTER_SAVE_INTERVAL > 0 #if defined(MCU_LPC1768) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
#define PRINTCOUNTER_SYNC 1 #define PRINTCOUNTER_SYNC 1
#endif #endif

2
Marlin/src/HAL/STM32/inc/Conditionals_post.h

@ -29,6 +29,6 @@
#endif #endif
// 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) && PRINTCOUNTER_SAVE_INTERVAL > 0 #if defined(STM32F4xx) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
#define PRINTCOUNTER_SYNC 1 #define PRINTCOUNTER_SYNC 1
#endif #endif

Loading…
Cancel
Save