Skip to content

Commit 4d9ac2f

Browse files
committed
In EspSoftwareSerial, some renaming after review feedback.
1 parent 959f3b5 commit 4d9ac2f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

libraries/ESP8266WiFi/examples/WiFiTelnetToSerial/WiFiTelnetToSerial.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
SWAP_PINS:
3232
0: use Serial1 for logging (legacy example)
3333
1: configure Hardware Serial port on RX:GPIO13 TX:GPIO15
34-
and use SoftwareSerial for logging on
34+
and use EspSoftwareSerial for logging on
3535
standard Serial pins RX:GPIO3 and TX:GPIO1
3636
*/
3737

@@ -59,7 +59,7 @@
5959

6060
#if SWAP_PINS
6161
#include <SoftwareSerial.h>
62-
SoftwareSerial::UART* logger = nullptr;
62+
EspSoftwareSerial::UART* logger = nullptr;
6363
#else
6464
#define logger (&Serial1)
6565
#endif
@@ -84,11 +84,11 @@ void setup() {
8484
#if SWAP_PINS
8585
Serial.swap();
8686
// Hardware serial is now on RX:GPIO13 TX:GPIO15
87-
// use SoftwareSerial on regular RX(3)/TX(1) for logging
88-
logger = new SoftwareSerial::UART(3, 1);
87+
// use EspSoftwareSerial on regular RX(3)/TX(1) for logging
88+
logger = new EspSoftwareSerial::UART(3, 1);
8989
logger->begin(BAUD_LOGGER);
9090
logger->enableIntTx(false);
91-
logger->println("\n\nUsing SoftwareSerial for logging");
91+
logger->println("\n\nUsing EspSoftwareSerial for logging");
9292
#else
9393
logger->begin(BAUD_LOGGER);
9494
logger->println("\n\nUsing Serial1 for logging");

libraries/esp8266/examples/SerialStress/SerialStress.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Serial read/write/verify/benchmark
44
Using internal loopback
5-
Using SoftwareSerial library for logging
5+
Using EspSoftwareSerial library for logging
66
77
Sketch meant for debugging only
88
Released to public domain
@@ -57,7 +57,7 @@ void setup() {
5757

5858
// using HardwareSerial0 pins,
5959
// so we can still log to the regular usbserial chips
60-
SoftwareSerial::UART* ss = new SoftwareSerial::UART(3, 1);
60+
EspSoftwareSerial::UART* ss = new EspSoftwareSerial::UART(3, 1);
6161
ss->begin(SSBAUD);
6262
ss->enableIntTx(false);
6363
logger = ss;

libraries/lwIP_PPP/examples/PPPServer/PPPServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define RX 13 // d1mini D7
3737
#define TX 15 // d1mini D8
3838

39-
SoftwareSerial::UART ppplink(RX, TX);
39+
EspSoftwareSerial::UART ppplink(RX, TX);
4040
HardwareSerial& logger = Serial;
4141
PPPServer ppp(&ppplink);
4242

0 commit comments

Comments
 (0)