From 8d5bea073b1f60d3c160c7d9a0baa5a202cad6c1 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Wed, 5 Sep 2018 14:18:13 -0500 Subject: [PATCH] Assume one Max7219 unit if not specified --- Marlin/src/feature/Max7219_Debug_LEDs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Marlin/src/feature/Max7219_Debug_LEDs.h b/Marlin/src/feature/Max7219_Debug_LEDs.h index 3523eef40f..8b3d19e18c 100644 --- a/Marlin/src/feature/Max7219_Debug_LEDs.h +++ b/Marlin/src/feature/Max7219_Debug_LEDs.h @@ -47,6 +47,9 @@ #endif #define _ROT ((MAX7219_ROTATE + 360) % 360) +#ifndef MAX7219_NUMBER_UNITS + #define MAX7219_NUMBER_UNITS 1 +#endif #define MAX7219_LINES (8 * (MAX7219_NUMBER_UNITS)) #if _ROT == 0 || _ROT == 180