From 5d515c3a2fac22b7adc0222f64aac6dbf7be7eed Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Tue, 24 Mar 2020 17:08:31 -0500 Subject: [PATCH] Adjust for timing shift on Max7219 displays on AVR's Something has shifted. The previous timing delays on the Max7219 debug displays is too tight without this correction. I suspect something has been optimized and roughly 50ns of needed setup and hold time has disappeared. This corrects the issue and the display results are clean again. --- Marlin/src/feature/max7219.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/feature/max7219.cpp b/Marlin/src/feature/max7219.cpp index 2ec23f019..b37ba98e7 100644 --- a/Marlin/src/feature/max7219.cpp +++ b/Marlin/src/feature/max7219.cpp @@ -121,7 +121,7 @@ uint8_t Max7219::suspended; // = 0; #define CRITICAL_SECTION_START() NOOP #define CRITICAL_SECTION_END() NOOP #else - #define SIG_DELAY() DELAY_NS(188) // Delay for 0.1875µs (16MHz AVR) or 0.15µs (20MHz AVR) + #define SIG_DELAY() DELAY_NS(250) // Delay for 0.1875µs (16MHz AVR) or 0.15µs (20MHz AVR) #endif void Max7219::error(const char * const func, const int32_t v1, const int32_t v2/*=-1*/) {