Skip to content

Commit

Permalink
Fix BuildChecksumResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Dec 22, 2018
1 parent 0466bbf commit 68c1168
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pyxcp/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

__copyright__="""
__copyright__ = """
pySART - Simplified AUTOSAR-Toolkit for Python.
(C) 2009-2018 by Christoph Schueler <cpu12.gems@googlemail.com>
Expand Down Expand Up @@ -187,9 +187,9 @@ class Command(enum.IntEnum):
)

DAQ = Struct(
"odt" / Byte,
"daq" / Byte,
"data" / GreedyBytes,
"odt" / Byte,
"daq" / Byte,
"data" / GreedyBytes,
)

ResourceType = BitStruct (
Expand Down Expand Up @@ -277,6 +277,7 @@ class Command(enum.IntEnum):

BuildChecksumResponse = Struct(
"checksumType" / Enum(Int8ul,
XCP_NONE = 0x00,
XCP_ADD_11 = 0x01,
XCP_ADD_12 = 0x02,
XCP_ADD_14 = 0x03,
Expand All @@ -288,7 +289,7 @@ class Command(enum.IntEnum):
XCP_CRC_32 = 0x09,
XCP_USER_DEFINED = 0xFF,
),
"reserved" / Int16ul,
Padding(2),
"checksum" / Int32ul,
)

Expand Down

0 comments on commit 68c1168

Please sign in to comment.