Skip to content

Commit 621cbc5

Browse files
committed
key: add const qualifier to key settings
1 parent 1786b5d commit 621cbc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/src/user/key.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
#define TAG "key"
1818

1919
#ifdef CONFIG_ENABLE_SC_KEY
20-
static uint8_t gpio_pin[] = {
20+
static const uint8_t gpio_pin[] = {
2121
#ifdef CONFIG_ENABLE_SC_KEY
2222
CONFIG_SC_KEY_PIN,
2323
#endif
2424
};
2525

26-
static uint8_t gpio_val[] = {
26+
static const uint8_t gpio_val[] = {
2727
#ifdef CONFIG_ENABLE_SC_KEY
2828
0,
2929
#else
3030
1,
3131
#endif
3232
};
3333

34-
static uint16_t gpio_hold[] = {
34+
static const uint16_t gpio_hold[] = {
3535
#ifdef CONFIG_ENABLE_SC_KEY
3636
CONFIG_SC_KEY_HOLD_TIME,
3737
#endif

0 commit comments

Comments
 (0)