Skip to content
Snippets Groups Projects
Commit a97624dd authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Allow pinsDebug "Analog in" long int

parent 7b8bb251
No related merge requests found
...@@ -152,7 +152,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa ...@@ -152,7 +152,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
#endif #endif
{ {
if (!GET_ARRAY_IS_DIGITAL(x)) { if (!GET_ARRAY_IS_DIGITAL(x)) {
sprintf_P(buffer, PSTR("Analog in = %5d"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin))); sprintf_P(buffer, PSTR("Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
SERIAL_ECHO(buffer); SERIAL_ECHO(buffer);
} }
else { else {
...@@ -214,7 +214,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa ...@@ -214,7 +214,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
} }
else { else {
if (IS_ANALOG(pin)) { if (IS_ANALOG(pin)) {
sprintf_P(buffer, PSTR(" Analog in = %5d"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin))); sprintf_P(buffer, PSTR(" Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
SERIAL_ECHO(buffer); SERIAL_ECHO(buffer);
SERIAL_ECHOPGM(" "); SERIAL_ECHOPGM(" ");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment