diff --git a/igsparser/msd.py b/igsparser/msd.py index c250562..eb20b2c 100644 --- a/igsparser/msd.py +++ b/igsparser/msd.py @@ -236,7 +236,7 @@ def fieldAccels(self, idx): 0x22: {'name': 'iRS02RG', 'fields': ['fieldAccel'], 'events': ['hall']}, 0x23: {'name': 'iBS03NT', 'fields': ['fieldDummy', 'fieldTempExt', 'fieldUser'], 'events': []}, 0x24: {'name': 'iBS03AD', 'fields': ['fieldDummy', 'fieldVoltage', 'fieldUser'], 'events': []}, - 0x25: {'name': 'iBS03DI', 'fields': ['fieldDummy', 'fieldDummy', 'fieldUser'], 'events': ['din']}, + 0x25: {'name': 'iBS03DI', 'fields': ['fieldDummy', 'fieldCounter', 'fieldUser'], 'events': ['din']}, 0x30: {'name': 'iBS05', 'fields': ['fieldDummy', 'fieldDummy', 'fieldUser'], 'events': ['button']}, 0x31: {'name': 'iBS05H', 'fields': ['fieldDummy', 'fieldDummy', 'fieldUser'], 'events': ['button', 'hall']}, 0x32: {'name': 'iBS05T', 'fields': ['fieldTemp', 'fieldDummy', 'fieldUser'], 'events': ['button']}, diff --git a/tests/test_ibs03.py b/tests/test_ibs03.py index ad2e972..6916e84 100644 --- a/tests/test_ibs03.py +++ b/tests/test_ibs03.py @@ -185,4 +185,5 @@ def handler(data, index): assert hasattr(msd, 'temperature') == False assert msd.events.din is True assert msd.user == 100 + assert msd.counter == 2566 MessageParser.parse(message, handler)