stm32-rs / stm32l0xx-hal

A hardware abstraction layer (HAL) for the STM32L0 series microcontrollers written in Rust
BSD Zero Clause License
96 stars 60 forks source link

Fixed potential race condition when flushing serial #188

Closed allexoll closed 3 years ago

allexoll commented 3 years ago

this addresses #179 where there could be a timing where the TC clear could be done after the read, missing it. would cause deadlock sometimes if flush is used with nb::block because the exit condition would be missed.

remarks welcome