Skip to content

Commit f840235

Browse files
committed
Correct typo
1 parent 876781d commit f840235

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/RS485.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ void RS485Class::setPins(int txPin, int dePin, int rePin)
166166
_rePin = rePin;
167167
}
168168

169-
RS485Class RS485(SERIAL_PORT_HARDWARE, RS485_DEFAULT_TX_PIN, RS845_DEFAULT_DE_PIN, RS845_DEFAULT_RE_PIN);
169+
RS485Class RS485(SERIAL_PORT_HARDWARE, RS485_DEFAULT_TX_PIN, RS485_DEFAULT_DE_PIN, RS485_DEFAULT_RE_PIN);

src/RS485.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
#endif
3030

3131
#ifdef __AVR__
32-
#define RS845_DEFAULT_DE_PIN 2
33-
#define RS845_DEFAULT_RE_PIN -1
32+
#define RS485_DEFAULT_DE_PIN 2
33+
#define RS485_DEFAULT_RE_PIN -1
3434
#else
35-
#define RS845_DEFAULT_DE_PIN A6
36-
#define RS845_DEFAULT_RE_PIN A5
35+
#define RS485_DEFAULT_DE_PIN A6
36+
#define RS485_DEFAULT_RE_PIN A5
3737
#endif
3838

3939
class RS485Class : public Stream {

0 commit comments

Comments
 (0)