QUERY · ISSUE
esp8266: Necessity for UART flush
port-esp8266
This is rather recommendation than issue. The code below sends a string message from UART1 and is supposed to pull the output pin LOW :
mypin.on()
uart1.write("a long sentence")
mypin.off()
when I checked the signal (part tx and output) with logic analyzer, I saw that pin is pulled low long before the uart transmission has been completed. A function like uart.flash() which checks the relevant uart status bits for completion of the transmission would be very handy.
CANDIDATE · PULL REQUEST
esp8266: fix UART parity setting
The configuration bits for the UART register were wrong and the parity couldn't be enabled, because the exist_parity member hasn't been updated. I took this ESP8266 register description as reference.
Verification has been done with a logic analyzer.