From 8032397b18db0a9d564988056dbe03bfb2a6658b Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Thu, 30 Jul 2009 20:48:59 +0000 Subject: Updating to rev. 27 of Firmata. --- libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde') diff --git a/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde b/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde index 02192cc..16c8b87 100644 --- a/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde +++ b/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde @@ -99,7 +99,8 @@ void setPinModeCallback(byte pin, int mode) { } if(pin > 1) { // ignore RxTx (pins 0 and 1) - reportAnalogCallback(pin - 14, mode == ANALOG ? 1 : 0); // turn on/off reporting + if(pin > 13) + reportAnalogCallback(pin - 14, mode == ANALOG ? 1 : 0); // turn on/off reporting switch(mode) { case ANALOG: digitalWrite(pin, LOW); // disable internal pull-ups and fall thru to 'case INPUT:' -- cgit v1.2.3-18-g5258