Fix pump unreachable alert

This commit is contained in:
Milos Kozak 2020-03-17 17:58:50 +01:00
parent 12612c2d1e
commit d9e08530fd

View file

@ -23,9 +23,6 @@ import org.slf4j.LoggerFactory
import kotlin.math.abs
class KeepAliveReceiver : BroadcastReceiver() {
private var lastReadStatus: Long = 0
private var lastRun: Long = 0
private var lastIobUpload: Long = 0
override fun onReceive(context: Context, rIntent: Intent) {
if (L.isEnabled(L.CORE))
@ -47,6 +44,10 @@ class KeepAliveReceiver : BroadcastReceiver() {
private val STATUS_UPDATE_FREQUENCY = T.mins(15).msecs()
private val IOB_UPDATE_FREQUENCY = T.mins(5).msecs()
private var lastReadStatus: Long = 0
private var lastRun: Long = 0
private var lastIobUpload: Long = 0
//called by MainApp at first app start
@JvmStatic
fun setAlarm(context: Context) {