mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
Merge branch 'master' of git://git.devl.org/git/malvira/libmc1322x
This commit is contained in:
commit
e60190eb11
@ -65,8 +65,9 @@ void uart1_putc(char c) {
|
||||
u1_head += 1;
|
||||
if (u1_head >= sizeof(u1_tx_buf))
|
||||
u1_head = 0;
|
||||
if (u1_head == u1_tail) /* drop chars when no room */
|
||||
return;
|
||||
if (u1_head == u1_tail) { /* drop chars when no room */
|
||||
if (u1_head) { u1_head -=1; } else { u1_head = sizeof(u1_tx_buf); }
|
||||
}
|
||||
enable_irq(UART1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user