X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fafsk.c;h=0db7956a3c8991977487a44ca0ee03d5b3d0dd26;hb=911d2706a86d326786bfe721dcc3d63aeade7f28;hp=a87754416d25872346baef3acac6e90581183639;hpb=3fc90c803d609a1444ceeb93432a814b206cbadc;p=bertos.git diff --git a/bertos/net/afsk.c b/bertos/net/afsk.c index a8775441..0db7956a 100644 --- a/bertos/net/afsk.c +++ b/bertos/net/afsk.c @@ -32,7 +32,6 @@ * * \brief AFSK1200 modem. * - * \version $Id$ * \author Francesco Sacchi */ @@ -127,7 +126,7 @@ INLINE uint8_t sin_sample(uint16_t idx) * \param bit current bit to be parsed. * \param fifo FIFO buffer used to push characters. * - * \return True if all is ok, False if the fifo is full. + * \return true if all is ok, false if the fifo is full. */ static bool hdlc_parse(Hdlc *hdlc, bool bit, FIFOBuffer *fifo) { @@ -477,7 +476,7 @@ static size_t afsk_read(KFile *fd, void *_buf, size_t size) ticks_t start = timer_clock(); #endif - while (fifo_isempty_locked(&af->rx_fifo)); + while (fifo_isempty_locked(&af->rx_fifo)) { cpu_relax(); #if CONFIG_AFSK_RXTIMEOUT != -1