Skip to content

Commit 78a4fc6

Browse files
added comment for sendErrorCode method
1 parent 590bba3 commit 78a4fc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Firmata.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ void FirmataClass::sendDigitalPort(byte portNumber, int portData)
328328
FirmataStream->write(portData >> 7); // Tx bits 7-13
329329
}
330330

331-
331+
// send an error code (0-127) to the client application
332+
// the client application should provide a string message corresponding to the
333+
// error code or otherwise handle the error as necessary
332334
void FirmataClass::sendErrorCode(byte errorCode)
333335
{
334336
startSysex();

0 commit comments

Comments
 (0)