forked from M-Labs/artiq
runtime/mailbox: fix mailbox_acknowledged for first message
This commit is contained in:
parent
53055a045d
commit
1ce41d567c
@ -51,7 +51,10 @@ void mailbox_send(void *ptr)
|
||||
|
||||
int mailbox_acknowledged(void)
|
||||
{
|
||||
return KERNELCPU_MAILBOX != last_transmission;
|
||||
unsigned int m;
|
||||
|
||||
m = KERNELCPU_MAILBOX;
|
||||
return !m || (m != last_transmission);
|
||||
}
|
||||
|
||||
void mailbox_send_and_wait(void *ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user