Skip to content

Commit d7e02c6

Browse files
Fix SWSerial polarity. (#560)
1 parent c32ad45 commit d7e02c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/rp2040/SoftwareSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class SoftwareSerial : public SerialPIO {
2626
public:
2727
// Note the rx/tx pins are swapped in PIO vs SWSerial
28-
SoftwareSerial(pin_size_t rx, pin_size_t tx, bool invert = true) : SerialPIO(tx, rx) {
28+
SoftwareSerial(pin_size_t rx, pin_size_t tx, bool invert = false) : SerialPIO(tx, rx) {
2929
if (invert) {
3030
panic("SoftwareSerial inverted operation not supported\n");
3131
}

0 commit comments

Comments
 (0)