Merge pull request #11446 from maciejbocianski/UserAllocatedEvent_update

add missing asserts to UserAllocatedEvent class
pull/11455/head
Martin Kojtal 2019-09-10 19:22:34 +02:00 committed by GitHub
commit 9f35e71ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,7 @@ public:
*/
void delay(int delay)
{
MBED_ASSERT(!_post_ref);
equeue_event_delay(&_e + 1, delay);
}
@ -223,6 +224,7 @@ public:
*/
void period(int period)
{
MBED_ASSERT(!_post_ref);
equeue_event_period(&_e + 1, period);
}