Skip to content

Commit 116e438

Browse files
committed
Add missing RS232ChannelProtocol.h to ESP32UARTChannel.h
1 parent e961656 commit 116e438

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/hardware/ESP32UARTChannel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,3 @@ void ESP32UARTChannel::setCTS(bool state)
150150
#endif
151151
return;
152152
}
153-

lib/hardware/ESP32UARTChannel.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define ESP32UARTCHANNEL_H
33

44
#include "IOChannel.h"
5+
#include "RS232ChannelProtocol.h"
56

67
#ifdef ESP_PLATFORM
78

@@ -85,10 +86,11 @@ class ESP32UARTChannel : public IOChannel, public RS232ChannelProtocol
8586

8687
// FujiNet acts as modem (DCE), computer serial ports are DTE.
8788
// API names follow the modem (DCE) view, but the actual RS-232 pin differs.
88-
bool getDTR(); // modem DTR input → actually reads RS-232 DSR pin
89-
void setDSR(bool state); // modem DSR output → actually drives RS-232 DTR pin
90-
bool getRTS(); // modem RTS input → actually reads RS-232 CTS pin
91-
void setCTS(bool state); // modem CTS output → actually drives RS-232 RTS pin
89+
bool getDTR() override; // modem DTR input → actually reads RS-232 DSR pin
90+
void setDSR(bool state) override; // modem DSR output → actually drives RS-232 DTR pin
91+
bool getRTS() override; // modem RTS input → actually reads RS-232 CTS pin
92+
void setCTS(bool state) override; // modem CTS output → actually drives RS-232 RTS pin
93+
bool getRI() override { return 0; }; // Ring Indicator is only an input on DTE
9294
};
9395

9496
extern ESP32UARTChannel fnDebugConsole;

0 commit comments

Comments
 (0)