Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dana. Tapping “Save to pump” in pump settings … #962

Open
Tracked by #1003
Jon-b-m opened this issue Nov 25, 2024 · 10 comments
Open
Tracked by #1003

Dana. Tapping “Save to pump” in pump settings … #962

Jon-b-m opened this issue Nov 25, 2024 · 10 comments
Labels

Comments

@Jon-b-m
Copy link
Member

Jon-b-m commented Nov 25, 2024

will make iAPS crash.

Tested with Dana RS V3 pump in both Dana and alphaDana branches.

Its in the first View (not the concentration view) you can’t tap “Save to pump” without having fatal bug.

@53645714n
Copy link

I don't have this with Dana-i

@bastiaanv
Copy link
Contributor

bastiaanv commented Dec 16, 2024

@Jon-b-m Could you post the stacktrace here? I also cannot reproduce this issue with the Dana-i.

Including the value you use for Max Basal and max Bolus

@Jon-b-m
Copy link
Member Author

Jon-b-m commented Dec 17, 2024

Crash log:
FreeAPS-2024-12-17-172047.ips.zip

@Jon-b-m
Copy link
Member Author

Jon-b-m commented Dec 17, 2024

A quick for this could be to just disable this save button when using Dana?

@Jon-b-m Jon-b-m added the Dana label Dec 18, 2024
@Jon-b-m
Copy link
Member Author

Jon-b-m commented Dec 19, 2024

@bastiaanv
in FreeAPS/Sources/Modules/PumpSettingsEditor/PumpSettingsEditorProvider.swift after line 34 if you add these lines the bug will be avoided (the save operation will be canceled):

guard !pump.localizedTitle.contains(NSLocalizedString("Dana", comment: "")) else {
return Just(()).setFailureType(to: Error.self).eraseToAnyPublisher()
}

We now don't have any localization for the "Dana" string yet, but the above will work even after adding it.

@bastiaanv
Copy link
Contributor

@Jon-b-m does this impact the workings of APS?
I dont mind adding it, but does it impact the bolus calculation.

Originally, it should ignore the user input and just fetch whatever is stored in the pump. I would like to keep it that way, but if max bolus and max basal isnt considered by APS, then we can just add it

@Jon-b-m
Copy link
Member Author

Jon-b-m commented Dec 19, 2024

Max bolus and max basal settings are respected in iAPS.

The problem here is that since you can’t actually save these settings to Dana it would be better to either disable this save button or rename it. However having a ”fetch” button is a bit weird and unintuitive. Perhaps better to fetch upon appear instead and never display the ”save” button when using Dana, but then we need to have the fetch working. Now it unfortunately makes iAPS crash (tested with RS v.3).

@bastiaanv
Copy link
Contributor

Small update, I contacted the Dutch dana importer and he will ship a DanaRS for me to debug this issue

@Jon-b-m
Copy link
Member Author

Jon-b-m commented Jan 19, 2025

@Jon-b-m does this impact the workings of APS? I dont mind adding it, but does it impact the bolus calculation.

Originally, it should ignore the user input and just fetch whatever is stored in the pump. I would like to keep it that way, but if max bolus and max basal isnt considered by APS, then we can just add it

I have a workaround, specific to Dana pumps, PR to dev now which will also work with the normal iAPS functions. Please have a look at it to see if your changes and your PR to dev now feels more complete.

@Jon-b-m
Copy link
Member Author

Jon-b-m commented Jan 19, 2025

Here: #1050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants