Skip to content

Commit 9e7c82c

Browse files
committed
Fix astyle issues
1 parent 37f13bd commit 9e7c82c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

events/include/events/Event.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ class Event<void(ArgTs...)> {
143143
/** Configure the period of an event
144144
*
145145
* @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
147147
* default non_periodic value is used.
148148
* E.g. period(200ms)
149149
*/
150150
void period(duration p)
151151
{
152152
if (_event) {
153153
if (p > duration(0)) {
154-
_event->period = p;
155-
}
156-
else {
154+
_event->period = p;
155+
156+
} else {
157157
if (p != non_periodic) {
158158
MBED_WARNING(MBED_ERROR_INVALID_ARGUMENT,
159159
"Invalid period specified, defaulting to non_periodic.");

0 commit comments

Comments
 (0)