Skip to content

Two protected areas in Stream.h #6146

Closed
@SummerSun

Description

@SummerSun

Is it a typo? The first one should be private according to the comments.

class Stream : public Print
{

protected:

    unsigned long _timeout;      // number of milliseconds to wait......
    unsigned long _startMillis;  // used for timeout measurement
    int timedRead();    // private method to read stream with timeout
    int timedPeek();    // private method to peek stream with timeout
public:
....
...

protected:

        long parseInt(char skipChar); // as above but the given skipChar is ignored
        // as above but the given skipChar is ignored
        // this allows format characters (typically commas) in values to be ignored

        float parseFloat(char skipChar);  // as above but the given skipChar is ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions