Skip to content

Commit 76aeef6

Browse files
committed
key: fix smartconfig key active level
1 parent 621cbc5 commit 76aeef6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main/src/user/key.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ static const uint8_t gpio_pin[] = {
2525

2626
static const uint8_t gpio_val[] = {
2727
#ifdef CONFIG_ENABLE_SC_KEY
28-
0,
29-
#else
30-
1,
28+
#ifdef CONFIG_SC_KEY_ACTIVE_LOW
29+
0,
30+
#else
31+
1,
32+
#endif
3133
#endif
3234
};
3335

0 commit comments

Comments
 (0)