Merge pull request #61 from Gebhartj/Gebhartj-patch-1
repair inscorect directive .offset to .origin
This commit is contained in:
commit
fcc52f3a92
2 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ class Program: # pylint: disable=too-few-public-methods
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ from pytest_helpers import assert_pio_kwargs
|
|||
|
||||
|
||||
def test_offset():
|
||||
assert_pio_kwargs(".offset 7", offset=7, sideset_enable=False)
|
||||
assert_pio_kwargs(".origin 7", offset=7, sideset_enable=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue