Pages: [1]   Go Down
Author Topic: FIRMATA sends digital input twice  (Read 349 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Standard Firmata 2.0 included in Arduino-0015 sends digital pin message twice:
void outputPort(byte portNumber, byte portValue)
{
  portValue = portValue &~ portStatus[portNumber];
  if(previousPINs[portNumber] != portValue) {
        Firmata.sendDigitalPort(portNumber, portValue);
        previousPINs[portNumber] = portValue;
       Firmata.sendDigitalPort(portNumber, portValue);
    }
}

Why ? I didn't find anything like that in the protocol specification. Is it a bug ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have exactly the same question.

I cannot understand why standardfirmata executes sendDigitalPort twice.

And what seems even more odd, although sendDigitalPort is executed twice, it is only received once in Flash.
Logged

Pages: [1]   Go Up
Jump to: