Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/NeoSWSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ size_t NeoSWSerial::write(uint8_t txChar)
// the last 0 data bit. Then we could wait for the
// remaining 1 data bits and stop bit with interrupts
// re-enabled.

txBitMask = digitalPinToBitMask( txPin );
txPort = portOutputRegister( digitalPinToPort( txPin ) );

while (txBit++ < 9) { // repeat for start bit + 8 data bits
if (b) // if bit is set
Expand Down