add delay to executing automations

This commit is contained in:
Milos Kozak 2020-07-15 22:46:59 +02:00
parent 9ff3011514
commit 39b4eac60f

View file

@ -5,6 +5,7 @@ import android.content.Intent
import android.os.Build
import android.os.Handler
import android.os.HandlerThread
import android.os.SystemClock
import dagger.android.HasAndroidInjector
import info.nightscout.androidaps.R
import info.nightscout.androidaps.events.EventBTChange
@ -211,6 +212,7 @@ class AutomationPlugin @Inject constructor(
}
})
}
SystemClock.sleep(1100)
event.lastRun = DateUtil.now()
}
}