Skip to content

Probable error in end function #29

Closed
@fra87

Description

@fra87

Hello

While debugging an (unrelated) issue I had a look at the source code of the library and found this in the end function in RS485.cpp (line 75 and following):

  if (_rePin > -1) {
    digitalWrite(_rePin, LOW);
    pinMode(_dePin, INPUT);
  }
  
  if (_dePin > -1) {
    digitalWrite(_dePin, LOW);
    pinMode(_rePin, INPUT);
  }

I think the _dePin and _rePin in the pinMode functions are swapped.

I assume this is not a real issue, since not a lot of people would use the end function, but for completeness sake maybe it is to fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions