Don't move patchStep when there is no connection

This commit is contained in:
jbr7rr 2023-06-08 14:25:25 +02:00
parent bad4d7a7f4
commit 3ae145524c

View file

@ -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 {
}
}
}
}