Skip to content

Commit

Permalink
Adapt to SoftwareSerial's latest use of namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
dok-net committed Mar 4, 2023
1 parent c89dac8 commit 6f10a1a
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>
SoftwareSerial* logger = nullptr;
SoftwareSerial::UART* 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 SoftwareSerial on regular RX(3)/TX(1) for logging
logger = new SoftwareSerial(3, 1);
logger = new SoftwareSerial::UART(3, 1);
logger->begin(BAUD_LOGGER);
logger->enableIntTx(false);
logger->println("\n\nUsing SoftwareSerial 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
SoftwareSerial* ss = new SoftwareSerial(3, 1);
SoftwareSerial::UART* ss = new SoftwareSerial::UART(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

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

Expand Down

0 comments on commit 6f10a1a

Please sign in to comment.