Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f163f37

Browse files
committedDec 9, 2024·
fix(core): Make BOOT_PIN static
1 parent cc32808 commit f163f37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎cores/esp32/esp32-hal.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ extern "C" {
6262
#endif
6363

6464
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
65-
const uint8_t BOOT_PIN = 0;
65+
static const uint8_t BOOT_PIN = 0;
6666
#define BOOT_PIN BOOT_PIN
6767
#elif CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C61
68-
const uint8_t BOOT_PIN = 9;
68+
static const uint8_t BOOT_PIN = 9;
6969
#define BOOT_PIN BOOT_PIN
7070
#elif CONFIG_IDF_TARGET_ESP32P4
71-
const uint8_t BOOT_PIN = 35;
71+
static const uint8_t BOOT_PIN = 35;
7272
#define BOOT_PIN BOOT_PIN
7373
#elif CONFIG_IDF_TARGET_ESP32C5
74-
const uint8_t BOOT_PIN = 28;
74+
static const uint8_t BOOT_PIN = 28;
7575
#define BOOT_PIN BOOT_PIN
7676
#endif
7777

0 commit comments

Comments
 (0)
Please sign in to comment.