Skip to content

Commit 1f0be0e

Browse files
committed
Prevent "duplicate case value" error.
1 parent fb4c6a0 commit 1f0be0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

variants/THUNDER_PACK/PinNamesVar.h

+4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
SYS_WKUP1 = NC,
44
#endif
55
#ifdef PWR_WAKEUP_PIN2
6+
// To prevent the error "duplicate case value"
7+
#undef PWR_WAKEUP_PIN2
68
SYS_WKUP2 = NC,
79
#endif
810
#ifdef PWR_WAKEUP_PIN3
11+
// To prevent the error "duplicate case value"
12+
#undef PWR_WAKEUP_PIN3
913
SYS_WKUP3 = NC,
1014
#endif
1115
#ifdef PWR_WAKEUP_PIN4

0 commit comments

Comments
 (0)