| 1234567891011121314151617181920 |
- import Combine
- extension AutotuneConfig {
- final class Provider: BaseProvider, AutotuneConfigProvider {
- @Injected() private var apsManager: APSManager!
- var autotune: Autotune? {
- storage.retrieve(OpenAPS.Settings.autotune, as: Autotune.self)
- }
- func runAutotune() -> AnyPublisher<Autotune?, Never> {
- apsManager.autotune()
- }
- func deleteAutotune() {
- storage.remove(OpenAPS.Settings.autotune)
- }
- }
- }
|