Merge pull request #6533 from c1728p9/timeout_fix

Fix deep sleep locking for Timeout class
pull/6561/head
Martin Kojtal 2018-04-06 09:49:06 +02:00 committed by GitHub
commit fff7299f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@
namespace mbed {
void Timeout::handler() {
_function.call();
Callback<void()> local = _function;
detach();
local.call();
}
} // namespace mbed