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