Don't move patchStep when there is no connection
This commit is contained in:
parent
bad4d7a7f4
commit
3ae145524c
|
@ -149,7 +149,14 @@ class MedtrumViewModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
else -> {}
|
||||
else -> {
|
||||
// Make sure we are connected, else dont move step
|
||||
if (medtrumService?.isConnected == false) {
|
||||
aapsLogger.info(LTag.PUMP, "moveStep: not connected, not moving step")
|
||||
return
|
||||
} else {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue