File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,17 +143,17 @@ class Event<void(ArgTs...)> {
143
143
/* * Configure the period of an event
144
144
*
145
145
* @param p Period (in milliseconds) for repeatedly dispatching an event, expressed as a Chrono duration.
146
- * Period must be either ' non_periodic' or > 0ms. If an invalid period is supplied then a
146
+ * Period must be either non_periodic or > 0ms. If an invalid period is supplied then a
147
147
* default non_periodic value is used.
148
148
* E.g. period(200ms)
149
149
*/
150
150
void period (duration p)
151
151
{
152
152
if (_event) {
153
153
if (p > duration (0 )) {
154
- _event->period = p;
155
- }
156
- else {
154
+ _event->period = p;
155
+
156
+ } else {
157
157
if (p != non_periodic) {
158
158
MBED_WARNING (MBED_ERROR_INVALID_ARGUMENT,
159
159
" Invalid period specified, defaulting to non_periodic." );
You can’t perform that action at this time.
0 commit comments