From 5cd3f2e09b860c42025f858033eaf5d9dac60933 Mon Sep 17 00:00:00 2001
From: Bertrand Lemasle <blemasle@gmail.com>
Date: Mon, 6 Aug 2018 19:07:51 +1200
Subject: [PATCH] Clear the active alerts first

---
 Core.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core.cpp b/Core.cpp
index 8424f64..afbe9fa 100644
--- a/Core.cpp
+++ b/Core.cpp
@@ -44,8 +44,8 @@ namespace core {
 			gps::preserveCurrentCoordinates();
 		}
 
-		alerts::add(notifyFailures(metadata));
 		alerts::clear(metadata);
+		alerts::add(notifyFailures(metadata));
 		positions::doBackup(forceBackup);
 
 		if (acquired) updateRtcTime();