Skip to content

Commit 5d67d87

Browse files
author
Jan Gebhart
committed
fix black formater
1 parent 27d3d59 commit 5d67d87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_pioasm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
8181
raise SyntaxError(f"Duplicate label {repr(label)}")
8282
labels[label] = len(instructions)
8383
if line.startswith("public "):
84-
public_labels[(line.split("public ")[1]).split(":")[0]] = len(instructions)
84+
public_labels[(line.split("public ")[1]).split(":")[0]] = len(
85+
instructions
86+
)
8587
elif line:
8688
# Only add as an instruction if the line isn't empty
8789
instructions.append(line)
@@ -243,7 +245,7 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
243245
self.pio_kwargs["wrap"] = wrap
244246
if wrap_target is not None:
245247
self.pio_kwargs["wrap_target"] = wrap_target
246-
248+
247249
if public_labels:
248250
self.pio_kwargs["public_labels"] = public_labels
249251

0 commit comments

Comments
 (0)