From 07f3be0d26e309ccdf0721fc5c4b26a422679d40 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Tue, 10 Mar 2026 21:55:06 +0000 Subject: [PATCH] Update BackgroundServiceDelegate.mc Changes to location sending and accuracy. --- source/BackgroundServiceDelegate.mc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/BackgroundServiceDelegate.mc b/source/BackgroundServiceDelegate.mc index 2e0d63b..2b58323 100644 --- a/source/BackgroundServiceDelegate.mc +++ b/source/BackgroundServiceDelegate.mc @@ -115,15 +115,17 @@ class BackgroundServiceDelegate extends System.ServiceDelegate { // System.println("BackgroundServiceDelegate onTemporalEvent(): Activity : " + Activity.getProfileInfo().name); // Don't use Settings.* here as the object lasts < 30 secs and is recreated each time the background service is run - - if (position.accuracy != Position.QUALITY_NOT_AVAILABLE && position.accuracy != Position.QUALITY_LAST_KNOWN) { + if (position.accuracy != Position.QUALITY_NOT_AVAILABLE) { var accuracy = 0; switch (position.accuracy) { + case Position.QUALITY_LAST_KNOWN: + accuracy = 100; + break; case Position.QUALITY_POOR: - accuracy = 500; + accuracy = 100; break; case Position.QUALITY_USABLE: - accuracy = 100; + accuracy = 50; break; case Position.QUALITY_GOOD: accuracy = 10;