Don't move patchStep when there is no connection
This commit is contained in:
parent
bad4d7a7f4
commit
3ae145524c
1 changed files with 8 additions and 1 deletions
|
@ -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