Skip to content

Commit 6ac60b4

Browse files
authored
repair inscorect directive .offset to .origin
.offset directive do not exist in pioasm
1 parent 2bc0deb commit 6ac60b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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)

0 commit comments

Comments
 (0)