Closed ryancaicse closed 2 years ago
Hi, the lock us->lock seems to guard the variable us->locked. However, the lock is released before accessing us->locked. Should it be a bug? https://github.com/cesanta/mongoose-os/blob/1ce60619904403e47c81df88d8622e2614c9588e/src/mgos_uart.c#L42-L50
us->lock
us->locked
you are right. feel free to send a PR.
Hi, the lock
us->lock
seems to guard the variableus->locked
. However, the lock is released before accessingus->locked
. Should it be a bug? https://github.com/cesanta/mongoose-os/blob/1ce60619904403e47c81df88d8622e2614c9588e/src/mgos_uart.c#L42-L50