8537c42d0a
This is necessary to prevent race conditions during connection setup. isSuspended() was relying on the driverStateUIFlow to determine if the pump is currently suspended. However, because driverStateUIFlow is updated in a separate coroutine, there is a chance that the Suspended state is set shortly _after_ connect() called isSuspended() to determine if the pump is suspended or not, causing connect() to do the wrong thing and assume that the pump is currently connected. Since the main screen does not show the current profile number, this leads to the error message "profile 1 must be the active profile, not profile 0". |
||
---|---|---|
.circleci | ||
.github | ||
.idea | ||
.run | ||
_docs | ||
app | ||
app-wear-shared | ||
core | ||
database | ||
gradle/wrapper | ||
implementation | ||
insight | ||
plugins | ||
pump | ||
ui | ||
wear | ||
workflow | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
build.gradle | ||
codecov.yml | ||
connectwsa.bat | ||
CONTRIBUTING.md | ||
crowdin.yml | ||
dependencyGraph.bat | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
ISSUE_TEMPLATE.md | ||
jacoco_project.gradle | ||
LICENSE.txt | ||
README.md | ||
runtests.bat | ||
runtests.sh | ||
settings.gradle |
AAPS
- Check the wiki: https://wiki.aaps.app
- Everyone who’s been looping with AAPS needs to fill out the form after 3 days of looping https://docs.google.com/forms/d/14KcMjlINPMJHVt28MDRupa4sz4DDIooI4SrW0P3HSN8/viewform?c=0&w=1
3KawK8aQe48478s6fxJ8Ms6VTWkwjgr9f2