Skip to content

Commit 43e90a3

Browse files
authored
Merge pull request #84 from sparkfun/ssClearPCI
Clear PCI at end of byte
2 parents e6f0bb2 + 06e7350 commit 43e90a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SoftwareSerial/src/SoftwareSerial.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ void SoftwareSerial::rxEndOfByte()
594594

595595
rxInUse = false; //Release so that we can TX if needed
596596

597+
am_hal_gpio_interrupt_clear(AM_HAL_GPIO_BIT(_rxPad)); //Clear any residual PCIs
598+
597599
// Disable the timer interrupt in the NVIC.
598600
NVIC_DisableIRQ(STIMER_CMPR7_IRQn);
599601
}

0 commit comments

Comments
 (0)