From 1011b56b4c8dfd456aa8cbf6538650259fc602bf Mon Sep 17 00:00:00 2001 From: Thad House Date: Fri, 5 Feb 2016 13:05:30 -0800 Subject: [PATCH] Fixes notifier restart error when last notifier is deleted This actually isn't a large issue, since the HAL automatically creates a notifier at the beginning to handle the time rollover, but during testing without that, I noticed that deleting the last notifier would disable notifiers for the entire lifetime of the program. This seemed to be caused by the CLOSEST_TRIGGER static variable not being reset, and causing new notifiers to never be added to the queue. This fixes that. Not a bug that can be seen normally, but still a bug. Change-Id: I6ac61c632918c90972cd0664aa833e3bc9e8c535 --- hal/lib/Athena/Notifier.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hal/lib/Athena/Notifier.cpp b/hal/lib/Athena/Notifier.cpp index 2184b5aec5..9679979890 100644 --- a/hal/lib/Athena/Notifier.cpp +++ b/hal/lib/Athena/Notifier.cpp @@ -125,6 +125,7 @@ void cleanNotifier(void* notifier_pointer, int32_t *status) delete notifierManager; notifierManager = nullptr; } + closestTrigger = UINT64_MAX; } }