Browse Source

Allow pinsDebug "Analog in" long int

Scott Lahteine 7 years ago
parent
commit
a97624dd81
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/pins/pinsDebug.h

+ 2
- 2
Marlin/src/pins/pinsDebug.h View File

@@ -152,7 +152,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
152 152
           #endif
153 153
           {
154 154
             if (!GET_ARRAY_IS_DIGITAL(x)) {
155
-              sprintf_P(buffer, PSTR("Analog in = %5d"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
155
+              sprintf_P(buffer, PSTR("Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
156 156
               SERIAL_ECHO(buffer);
157 157
             }
158 158
             else {
@@ -214,7 +214,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
214 214
         }
215 215
         else {
216 216
           if (IS_ANALOG(pin)) {
217
-            sprintf_P(buffer, PSTR("   Analog in = %5d"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
217
+            sprintf_P(buffer, PSTR("   Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
218 218
             SERIAL_ECHO(buffer);
219 219
             SERIAL_ECHOPGM("   ");
220 220
           }

Loading…
Cancel
Save