mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
Verify against real captured pump-logs events that build_from_json: - resolves enum/dictionary fields from their raw ints (commandedRateSource, alarmId, requestedAction, previousUserMode, glucoseValueStatus incl. 0) - scales ratio fields (rate x0.1) - folds bitmask arrays of set-bit indices back to the raw int the IntFlag expects (activeSleepSchedule [0]->1, cgmDataType [0]->1, egvInfoBitmask [0,5,6,7,8,11,12]->6625), and empty array->0 - keeps the raw.timestamp shim used by process_device_status and the raw egvTimeStamp seconds used by ProcessCGMReading