From e2df2864449ad64583d0ea9f0f9feaf82ee17a86 Mon Sep 17 00:00:00 2001 From: Ben Lye Date: Thu, 1 Mar 2018 10:51:36 +0000 Subject: [PATCH] Update pinsDebug.h (#9874) Fix display of analog input value. --- Marlin/src/pins/pinsDebug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/pins/pinsDebug.h b/Marlin/src/pins/pinsDebug.h index 45c15675d7..fd928c1f27 100644 --- a/Marlin/src/pins/pinsDebug.h +++ b/Marlin/src/pins/pinsDebug.h @@ -151,7 +151,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa else #endif { - if (!GET_ARRAY_IS_DIGITAL(pin)) { + if (!GET_ARRAY_IS_DIGITAL(x)) { sprintf_P(buffer, PSTR("Analog in = %5d"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin))); SERIAL_ECHO(buffer); }