Prevent rtx_wait() returning when txlen is being updated (non atomic)

master
Philip Heron 2010-06-16 23:19:04 +01:00
rodzic a0398932be
commit eb2cce95bd
1 zmienionych plików z 1 dodań i 0 usunięć

1
rtty.c
Wyświetl plik

@ -69,6 +69,7 @@ void inline rtx_wait()
{
/* Wait for interrupt driven TX to finish */
while(txlen > 0);
while(txlen > 0);
}
void rtx_data(uint8_t *data, size_t length)