fix: Various mostly X10E soft serial issues (#3382)

* fix: pulse driver with 32bit timers

* fix(mpm): clear RX buffer before signature

* fix: add some debouncing on soft-serial start bit detection

This helps coping with spurious impulses on S.PORT created by payload sent over PPM pin (X10E).

* fix: whenever the RXNE bit is set, read the register

... regardless of errors. That allows for reducing the effect of detected errors.
This commit is contained in:
Raphael Coeffic
2023-03-26 11:23:32 +10:00
committed by GitHub
parent 8560c1f6bf
commit e016598b56
4 changed files with 21 additions and 7 deletions
+2
View File
@@ -233,6 +233,8 @@ const char * MultiFirmwareUpdateDriver::waitForInitialSync()
const char * MultiFirmwareUpdateDriver::getDeviceSignature(uint8_t * signature) const
{
clear();
// Read signature
sendByte(STK_READ_SIGN);
sendByte(CRC_EOP);