Skip to content

Commit fcc52f3

Browse files
authored
Merge pull request #61 from Gebhartj/Gebhartj-patch-1
repair inscorect directive .offset to .origin
2 parents 2bc0deb + 05e0ae9 commit fcc52f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_pioasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
6363
if program_name:
6464
raise RuntimeError("Multiple programs not supported")
6565
program_name = line.split()[1]
66-
elif line.startswith(".offset"):
66+
elif line.startswith(".origin"):
6767
offset = int(line.split()[1], 0)
6868
elif line.startswith(".wrap_target"):
6969
wrap_target = len(instructions)

tests/test_pseudo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111

1212
def test_offset():
13-
assert_pio_kwargs(".offset 7", offset=7, sideset_enable=False)
13+
assert_pio_kwargs(".origin 7", offset=7, sideset_enable=False)

0 commit comments

Comments
 (0)