mirror of https://github.com/ARMmbed/mbed-os.git
Further whitespace fixes
parent
1746ed0bc0
commit
27689ef2b3
|
@ -143,7 +143,7 @@ public:
|
||||||
/** Configure the period of an event
|
/** Configure the period of an event
|
||||||
*
|
*
|
||||||
* @param p Period (in milliseconds) for repeatedly dispatching an event, expressed as a Chrono duration.
|
* @param p Period (in milliseconds) for repeatedly dispatching an event, expressed as a Chrono duration.
|
||||||
* Period must be either non_periodic or > 0ms. If an invalid period is supplied then a
|
* Period must be either non_periodic or > 0ms. If an invalid period is supplied then a
|
||||||
* default non_periodic value is used.
|
* default non_periodic value is used.
|
||||||
* E.g. period(200ms)
|
* E.g. period(200ms)
|
||||||
*/
|
*/
|
||||||
|
@ -152,13 +152,13 @@ public:
|
||||||
if (_event) {
|
if (_event) {
|
||||||
if (p > duration(0)) {
|
if (p > duration(0)) {
|
||||||
_event->period = p;
|
_event->period = p;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (p != non_periodic) {
|
if (p != non_periodic) {
|
||||||
MBED_WARNING(MBED_ERROR_INVALID_ARGUMENT,
|
MBED_WARNING(MBED_ERROR_INVALID_ARGUMENT,
|
||||||
"Invalid period specified, defaulting to non_periodic.");
|
"Invalid period specified, defaulting to non_periodic.");
|
||||||
}
|
}
|
||||||
_event->period = non_periodic;
|
_event->period = non_periodic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue