Skip to content

Commit

Permalink
restored Serial.begin(speed) to earlier version so blinkVersion is ca…
Browse files Browse the repository at this point in the history
…lled at correct time
  • Loading branch information
soundanalogous committed Jun 19, 2013
1 parent 12d5203 commit eb36464
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Firmata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,18 @@ void FirmataClass::begin(void)
void FirmataClass::begin(long speed)
{
Serial.begin(speed);
begin(Serial);
blinkVersion();
FirmataSerial = &Serial;
blinkVersion();
printVersion();
printFirmwareVersion();
}

/* begin method for overriding default stream */
void FirmataClass::begin(Stream &s)
{
FirmataSerial = &s;
// do not call blinkVersion() here because some hardware such as the
// Ethernet shield use pin 13
printVersion();
printFirmwareVersion();
}
Expand Down

0 comments on commit eb36464

Please sign in to comment.