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.
Fork of mbed-dev by
Diff: drivers/Ticker.cpp
- Revision:
- 175:af195413fb11
- Parent:
- 174:b96e65c34a4d
--- a/drivers/Ticker.cpp Mon Oct 02 15:33:19 2017 +0100 +++ b/drivers/Ticker.cpp Wed Oct 11 12:45:49 2017 +0100 @@ -25,10 +25,11 @@ void Ticker::detach() { core_util_critical_section_enter(); remove(); - // unlocked only if we were attached (we locked it) - if (_function) { + // unlocked only if we were attached (we locked it) and this is not low power ticker + if(_function && _lock_deepsleep) { sleep_manager_unlock_deep_sleep(); } + _function = 0; core_util_critical_section_exit(); }