Skip to content

Commit 8159bce

Browse files
committed
Delete setPins-API. It's not needed.
1 parent 0da6211 commit 8159bce

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/lib/motors/RS485.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,3 @@ void RS485Class::sendBreakMicroseconds(unsigned int duration)
155155
delayMicroseconds(duration);
156156
_serial->begin(_baudrate, _config);
157157
}
158-
159-
void RS485Class::setPins(int txPin, int dePin, int rePin)
160-
{
161-
_txPin = txPin;
162-
_dePin = dePin;
163-
_rePin = rePin;
164-
}

src/lib/motors/RS485.h

-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ class RS485Class : public Stream {
6666
void sendBreak(unsigned int duration);
6767
void sendBreakMicroseconds(unsigned int duration);
6868

69-
void setPins(int txPin, int dePin, int rePin);
70-
7169
private:
7270
HardwareSerial* _serial;
7371
int _txPin;

0 commit comments

Comments
 (0)