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
           #endif
152
           #endif
153
           {
153
           {
154
             if (!GET_ARRAY_IS_DIGITAL(x)) {
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
               SERIAL_ECHO(buffer);
156
               SERIAL_ECHO(buffer);
157
             }
157
             }
158
             else {
158
             else {
214
         }
214
         }
215
         else {
215
         else {
216
           if (IS_ANALOG(pin)) {
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
             SERIAL_ECHO(buffer);
218
             SERIAL_ECHO(buffer);
219
             SERIAL_ECHOPGM("   ");
219
             SERIAL_ECHOPGM("   ");
220
           }
220
           }

Loading…
Cancel
Save