mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Updated EspSoftwareSerial brings backward compatibility for ctor/begin() pair (only for the common cases with complete default argument use) (#6746)
This commit is contained in:
parent
43e0554b9c
commit
739bcd3fd5
@ -85,8 +85,8 @@ void setup() {
|
|||||||
Serial.swap();
|
Serial.swap();
|
||||||
// Hardware serial is now on RX:GPIO13 TX:GPIO15
|
// Hardware serial is now on RX:GPIO13 TX:GPIO15
|
||||||
// use SoftwareSerial on regular RX(3)/TX(1) for logging
|
// use SoftwareSerial on regular RX(3)/TX(1) for logging
|
||||||
logger = new SoftwareSerial();
|
logger = new SoftwareSerial(3, 1);
|
||||||
logger->begin(BAUD_LOGGER, 3, 1);
|
logger->begin(BAUD_LOGGER);
|
||||||
logger->enableIntTx(false);
|
logger->enableIntTx(false);
|
||||||
logger->println("\n\nUsing SoftwareSerial for logging");
|
logger->println("\n\nUsing SoftwareSerial for logging");
|
||||||
#else
|
#else
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 1a1472340b73d17495710f489de81e7b53fb5a21
|
Subproject commit 9bb7388ca9468a8325a88b7de1f2d39f2786e03b
|
@ -72,8 +72,8 @@ void setup() {
|
|||||||
|
|
||||||
// using HardwareSerial0 pins,
|
// using HardwareSerial0 pins,
|
||||||
// so we can still log to the regular usbserial chips
|
// so we can still log to the regular usbserial chips
|
||||||
SoftwareSerial* ss = new SoftwareSerial;
|
SoftwareSerial* ss = new SoftwareSerial(3, 1);
|
||||||
ss->begin(SSBAUD, 3, 1);
|
ss->begin(SSBAUD);
|
||||||
ss->enableIntTx(false);
|
ss->enableIntTx(false);
|
||||||
logger = ss;
|
logger = ss;
|
||||||
logger->println();
|
logger->println();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user