mirror of https://github.com/ARMmbed/mbed-os.git
Fix deep sleep locking for Timeout class
Detach in the Timeout::handler so deep sleep is properly unlocked.pull/6533/head
parent
4a5ac149ec
commit
1b58e58e1a
|
@ -18,7 +18,9 @@
|
|||
namespace mbed {
|
||||
|
||||
void Timeout::handler() {
|
||||
_function.call();
|
||||
Callback<void()> local = _function;
|
||||
detach();
|
||||
local.call();
|
||||
}
|
||||
|
||||
} // namespace mbed
|
||||
|
|
Loading…
Reference in New Issue