mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
The bff pump-logs endpoint gives glucoseValueStatus + a raw display value; a below/above-range reading (e.g. status SpecialLow with displayValue 38) is a boundary indicator, not a measurement. Mirror the Tandem Source frontend (CgmBuilder.determineGlucoseValue): map SpecialLow/precise<40 -> 39 and SpecialHigh/precise>400 -> 401. Each sensor (G7/G6/FSL2/FSL3) is resolved against its own glucoseValueStatus enum members rather than assuming the enums are consistent across sensor types. Also widen the real-JSON CGM tests to span glucose 38..361 (incl. the LOW sentinel) and add a ProcessTimeRange basal JSON integration test.