Skip to content

Commit

Permalink
Remove the extra zeros from modifier mask
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardhyu committed Sep 30, 2024
1 parent b5f1df8 commit 40be6a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin2544/meta.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "RFC-2544"
version: "2.0.3"
version: "2.0.4"
core_version: ">=2.0.0"
author:
- "MC"
Expand Down
2 changes: 1 addition & 1 deletion plugin2544/plugin/stream_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def setup_modifier(self) -> None:
modifier = modifiers.obtain(mid)
await modifier.specification.set(
position=hw_modifier.byte_segment_position,
mask=misc.Hex(f"{hw_modifier.mask}0000"),
mask=misc.Hex(f"{hw_modifier.mask}"),
action=hw_modifier.action.to_xmp(),
repetition=hw_modifier.repeat,
)
Expand Down
2 changes: 1 addition & 1 deletion plugin2889/meta.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "RFC-2889"
version: "2.0.3"
version: "2.0.4"
core_version: ">=2.0.0"
author:
- "Frank Chen"
Expand Down
2 changes: 1 addition & 1 deletion plugin3918/meta.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "RFC-3918"
version: "2.0.3"
version: "2.0.4"
core_version: ">=2.0.0"
author:
- "RDI"
Expand Down
2 changes: 1 addition & 1 deletion plugin3918/model/protocol_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ class HwModifier(BaseModel):
@validator("mask", pre=True, always=True)
def set_mask(cls, v):
v = v[2:6] if v.startswith("0x") else v
return f"{v}0000"
return f"{v}"


class FieldValueRange(BaseModel):
Expand Down

0 comments on commit 40be6a6

Please sign in to comment.