From: batt Date: Fri, 4 Jun 2010 19:57:38 +0000 (+0000) Subject: Fix typo. X-Git-Tag: 2.5.0~22 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3b747287f13850aabb9f92e66a21017dcc156b19;p=bertos.git Fix typo. Very hard to find bug! It caused CPU starvation when there was no AFSK data. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3895 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/afsk.c b/bertos/net/afsk.c index 229ca3ec..0db7956a 100644 --- a/bertos/net/afsk.c +++ b/bertos/net/afsk.c @@ -476,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