From c2c02bdc67d9a104567d25b7e42718e0837221eb Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Sat, 5 May 2018 16:08:54 -0500 Subject: [PATCH] Change Max7219 coordinates to traditional (X,Y) --- Marlin/src/feature/Max7219_Debug_LEDs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/feature/Max7219_Debug_LEDs.cpp b/Marlin/src/feature/Max7219_Debug_LEDs.cpp index 75e0bd74f7..74cbb20f21 100644 --- a/Marlin/src/feature/Max7219_Debug_LEDs.cpp +++ b/Marlin/src/feature/Max7219_Debug_LEDs.cpp @@ -113,9 +113,9 @@ void Max7219_LED_Set(const uint8_t col, const uint8_t row, const bool on) { SERIAL_ECHOLNPGM(")"); return; } - if (TEST(LEDs[row], col) == on) return; // if LED is already on/off, leave alone - if (on) SBI(LEDs[row], col); else CBI(LEDs[row], col); - Max7219(8 - row, LEDs[row]); + if (TEST(LEDs[col], row) == on) return; // if LED is already on/off, leave alone + if (on) SBI(LEDs[col], row); else CBI(LEDs[col], row); + Max7219(8 - col, LEDs[col]); } void Max7219_LED_On(const uint8_t col, const uint8_t row) {