| 12345678910111213141516171819202122232425262728 |
- // LoopFollow
- // Globals.swift
- import Foundation
- enum globalVariables {
- static var debugLog = ""
- // Graph Settings
- static let dotBG: Float = 3
- static let dotCarb: Float = 5
- static let dotBolus: Float = 5
- static let dotOther: Float = 5
- // Glucose display range (mg/dL)
- // Values at or below the min are shown as "LOW" on the main display;
- // values at or above the max are shown as "HIGH". Also used to clamp
- // BG readings and prediction values on the graph.
- static let minDisplayGlucose: Int = 39
- static let maxDisplayGlucose: Int = 400
- // Number of apps that may upload BG to the same account (a looping system,
- // the Dexcom app, Apple Watch, ...). Each one writes a duplicate reading per
- // slot, so the Nightscout entry-count request is multiplied by this to avoid
- // truncating history before the date filter bounds the window.
- static let maxExpectedUploaders = 4
- }
|