Skip to content

Commit

Permalink
Merge pull request #61 from Gebhartj/Gebhartj-patch-1
Browse files Browse the repository at this point in the history
repair inscorect directive .offset to .origin
  • Loading branch information
jepler authored Jan 26, 2024
2 parents 2bc0deb + 05e0ae9 commit fcc52f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adafruit_pioasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
if program_name:
raise RuntimeError("Multiple programs not supported")
program_name = line.split()[1]
elif line.startswith(".offset"):
elif line.startswith(".origin"):
offset = int(line.split()[1], 0)
elif line.startswith(".wrap_target"):
wrap_target = len(instructions)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pseudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@


def test_offset():
assert_pio_kwargs(".offset 7", offset=7, sideset_enable=False)
assert_pio_kwargs(".origin 7", offset=7, sideset_enable=False)

0 comments on commit fcc52f3

Please sign in to comment.