Notifier: properly reset HAL alarm in non-periodic case (#1296)

The loop spins otherwise.
This commit is contained in:
Peter Johnson
2018-09-03 16:07:23 -07:00
committed by GitHub
parent 0b113ad9ce
commit 67b1c85315
3 changed files with 30 additions and 5 deletions

View File

@@ -88,6 +88,13 @@ class Notifier : public ErrorBase {
private:
/**
* Update the HAL alarm time.
*
* @param triggerTime the time at which the next alarm will be triggered
*/
void UpdateAlarm(uint64_t triggerTime);
/**
* Update the HAL alarm time based on m_expirationTime.
*/
void UpdateAlarm();