Skip to content

Commit

Permalink
Merge pull request #6 from ndanyliw/master
Browse files Browse the repository at this point in the history
Fixed indexing bug with the timestamp in an OAP notification which caused the decoded structure to be one byte off resulting in incorrect UTC timestamps.

This is a hotfix for SMSDK-16.
  • Loading branch information
dbacher-linear authored Oct 24, 2017
2 parents 09119db + 4ee27be commit 9d3d86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/SmartMeshSDK/protocols/oap/OAPNotif.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def parse_oap_notif(data, index = 0):
index += 2 + l

# timestamp
(secs, usecs) = struct.unpack_from('!ql', data, index + 1)
(secs, usecs) = struct.unpack_from('!ql', data, index)
index += 12

# rate
Expand Down

0 comments on commit 9d3d86f

Please sign in to comment.