Skip to content

Commit b272773

Browse files
loudnatebewest
authored andcommitted
Adding support for G5 EGVRecord sizes
1 parent cf10d70 commit b272773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dexcom_reader/database_records.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,15 @@ class EGVRecord(GenericTimestampedRecord):
278278
# uint, uint, ushort, byte, ushort
279279
# (system_seconds, display_seconds, glucose, trend_arrow, crc)
280280
FIELDS = ['glucose', 'trend_arrow']
281-
FORMAT = '<2IHcH'
281+
FORMAT = '<2IHBBBBBBBBBcBH'
282282

283283
@property
284284
def full_glucose(self):
285285
return self.data[2]
286286

287287
@property
288288
def full_trend(self):
289-
return self.data[3]
289+
return self.data[12]
290290

291291
@property
292292
def display_only(self):

0 commit comments

Comments
 (0)