Skip to content

Commit

Permalink
Stick to non-namespace EspSoftwareSerial class name for the moment.
Browse files Browse the repository at this point in the history
  • Loading branch information
dok-net committed Mar 5, 2023
1 parent 0d46442 commit 2db06a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

#if SWAP_PINS
#include <SoftwareSerial.h>
EspSoftwareSerial::UART* logger = nullptr;
SoftwareSerial* logger = nullptr;
#else
#define logger (&Serial1)
#endif
Expand All @@ -85,7 +85,7 @@ void setup() {
Serial.swap();
// Hardware serial is now on RX:GPIO13 TX:GPIO15
// use EspSoftwareSerial on regular RX(3)/TX(1) for logging
logger = new EspSoftwareSerial::UART(3, 1);
logger = new SoftwareSerial(3, 1);
logger->begin(BAUD_LOGGER);
logger->enableIntTx(false);
logger->println("\n\nUsing EspSoftwareSerial for logging");
Expand Down
2 changes: 1 addition & 1 deletion libraries/esp8266/examples/SerialStress/SerialStress.ino
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void setup() {

// using HardwareSerial0 pins,
// so we can still log to the regular usbserial chips
EspSoftwareSerial::UART* ss = new EspSoftwareSerial::UART(3, 1);
SoftwareSerial* ss = new SoftwareSerial(3, 1);
ss->begin(SSBAUD);
ss->enableIntTx(false);
logger = ss;
Expand Down
2 changes: 1 addition & 1 deletion libraries/lwIP_PPP/examples/PPPServer/PPPServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define RX 13 // d1mini D7
#define TX 15 // d1mini D8

EspSoftwareSerial::UART ppplink(RX, TX);
SoftwareSerial ppplink(RX, TX);
HardwareSerial& logger = Serial;
PPPServer ppp(&ppplink);

Expand Down

0 comments on commit 2db06a2

Please sign in to comment.