mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11446 from maciejbocianski/UserAllocatedEvent_update
add missing asserts to UserAllocatedEvent classpull/11455/head
commit
9f35e71ca5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue