From f383a27de836561260112285b069124c3f6ed154 Mon Sep 17 00:00:00 2001 From: Klaus3d3 <31705095+Klaus3d3@users.noreply.github.com> Date: Tue, 24 Jul 2018 17:18:58 +0200 Subject: [PATCH] update --- .../dexdrip/wearintegration/Amazfitservice.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/wearintegration/Amazfitservice.java b/app/src/main/java/com/eveningoutpost/dexdrip/wearintegration/Amazfitservice.java index e6042eeb77..de431dd93e 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/wearintegration/Amazfitservice.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/wearintegration/Amazfitservice.java @@ -1,7 +1,7 @@ package com.eveningoutpost.dexdrip.wearintegration; -import com.eveningoutpost.dexdrip.Models.AlertType; + import com.eveningoutpost.dexdrip.Models.BgReading; import com.eveningoutpost.dexdrip.Models.JoH; import com.eveningoutpost.dexdrip.R; @@ -52,9 +52,8 @@ */ public class Amazfitservice extends Service { - BestGlucose.DisplayGlucose dg; - + BestGlucose.DisplayGlucose dg; private static String action; private static String alert_to_send; private static int default_snooze; @@ -85,7 +84,8 @@ public void onCreate() { public void onChannelChanged(boolean ready) { //Transporter is ready if ready is true, send an action now. This will **NOT** work before the transporter is ready! //You can change the action to whatever you want, there's also an option for a data bundle to be added (see below) - if (ready) UserError.Log.e("Amazfitservice", "channel changed "); + if (ready) UserError.Log.e("Amazfitservice", "channel changed - trying automatic resend "); + Amazfitservice.start("xDrip_synced_SGV_data"); } }); @@ -193,9 +193,7 @@ public int onStartCommand(Intent intent, int flags, int startId) { } - private void Amazfit_send_data() { - } public static String getAction() { return action;} public static void setAction(String actionremote) {