Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Arduino-mbed-APIs/arduino-mbed.cpp
- Revision:
- 79:8ae448a3c1fd
- Parent:
- 77:7f227a4dffe6
- Child:
- 80:62f0b027efff
--- a/Arduino-mbed-APIs/arduino-mbed.cpp Wed Aug 02 10:34:14 2017 +0200
+++ b/Arduino-mbed-APIs/arduino-mbed.cpp Thu Aug 03 11:59:54 2017 +0200
@@ -241,6 +241,8 @@
noInterrupts();
for (int i = 0; i < MAX_TIMEOUTS-1; i++) {
struct TimeoutVector *tvp = &TimeOuts[i];
+ if (tvp->timer == this) // already here, timer has been restartet.
+ break;
if (tvp->timer == NULL) {
tvp->timer = this;
break;