summaryrefslogtreecommitdiffstats
path: root/glucometerutils/drivers/sdcodefree.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/drivers/sdcodefree.py')
-rw-r--r--glucometerutils/drivers/sdcodefree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/drivers/sdcodefree.py b/glucometerutils/drivers/sdcodefree.py
index 55c0bf1..5bc76fb 100644
--- a/glucometerutils/drivers/sdcodefree.py
+++ b/glucometerutils/drivers/sdcodefree.py
@@ -41,7 +41,7 @@ class Direction(enum.Enum):
_PACKET = construct.Struct(
'stx' / construct.Const(0x53, construct.Byte),
- 'direction' / construct.SymmetricMapping(
+ 'direction' / construct.Mapping(
construct.Byte,
{e: e.value for e in Direction}),
'length' / construct.Rebuild(
@@ -82,7 +82,7 @@ _READING = construct.Struct(
'hour' / construct.Byte,
'minute' / construct.Byte,
'value' / construct.Int16ub,
- 'meal' / construct.SymmetricMapping(
+ 'meal' / construct.Mapping(
construct.Byte, _MEAL_FLAG),
construct.Byte[7],
)