Skip to content

misleading / wrong comment in cpp file [imported] #786

Closed
@cmaglie

Description

@cmaglie

This is Issue 786 moved from a Google Code project.
Added by 2012-01-11T08:22:22.000Z by seb.ha...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

in function
void FirmataClass::processInput(void)
there is this code:
case SET_PIN_MODE:
waitForData = 2; // two data bytes needed
executeMultiByteCommand = command;
break;
case REPORT_ANALOG:
case REPORT_DIGITAL:
waitForData = 1; // two data bytes needed
executeMultiByteCommand = command;
break;

I suppose the second comment should read:
// one data byte needed

right ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreRelated to the code for the standard Arduino APIComponent: DocumentationRelated to Arduino's documentation content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions