Skip to content

Commit 4a63482

Browse files
committed
fix: script: avoid duplicate sys_wkup pin (PY_n vs PY_n_C
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9f34a6e commit 4a63482

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CI/utils/stm32variant.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,9 @@ def store_qspi(pin, name, signal):
499499
# Store SYS pins
500500
def store_sys(pin, name, signal):
501501
if "_WKUP" in signal:
502-
signal = signal.replace("PWR", "SYS")
503-
syswkup_list.append([pin, name, signal])
502+
if not any(pin.replace("_C", "") in i for i in syswkup_list):
503+
signal = signal.replace("PWR", "SYS")
504+
syswkup_list.append([pin, name, signal])
504505

505506

506507
# Store USB pins

0 commit comments

Comments
 (0)