Skip to content

Commit

Permalink
renesas-ra/boards: Remove unreachable code in make-pins.py.
Browse files Browse the repository at this point in the history
Looks like copy-paste from the stm32 make-pins.py, references a function
that is not present in the renesas-ra version.

Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
  • Loading branch information
projectgus authored and dpgeorge committed Aug 16, 2023
1 parent 29c022e commit 974f994
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ports/renesas-ra/boards/make-pins.py
Expand Up @@ -220,13 +220,7 @@ def print_qstr(self, qstr_filename):
for named_pin in self.board_pins:
qstr_set |= set([named_pin.name()])
for qstr in sorted(qstr_set):
cond_var = None
if qstr.startswith("AF"):
af_words = qstr.split("_")
cond_var = conditional_var(af_words[1])
print_conditional_if(cond_var, file=qstr_file)
print("Q({})".format(qstr), file=qstr_file)
# print_conditional_endif(cond_var, file=qstr_file)

def print_ad_hdr(self, ad_const_filename):
with open(ad_const_filename, "wt") as ad_const_file:
Expand Down

0 comments on commit 974f994

Please sign in to comment.