Remove unecessary namespace qualified

(Also minor whitespace correction)
pull/14087/head
adbridge 2021-01-08 17:15:13 +00:00
parent f2b86864d5
commit 37f13bdeb2
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ public:
_event->equeue = &q->_equeue;
_event->id = 0;
_event->delay = duration(0);
_event->period = events::non_periodic;
_event->period = non_periodic;
_event->post = &Event::event_post<F>;
_event->dtor = &Event::event_dtor<F>;
@ -154,11 +154,11 @@ public:
_event->period = p;
}
else {
if (p != events::non_periodic) {
if (p != non_periodic) {
MBED_WARNING(MBED_ERROR_INVALID_ARGUMENT,
"Invalid period specified, defaulting to non_periodic.");
}
_event->period = events::non_periodic;
_event->period = non_periodic;
}
}
}

View File

@ -518,7 +518,7 @@ void handler()
void event_period_tests()
{
// Test a non periodic event ie dispatched only once
// Test a non periodic event ie dispatched only once
Event<void()> event1(&period_tests_queue, handler);