Skip to content

Commit b39ae2e

Browse files
SuGliderCopilot
andauthored
fix(periman): NULL initialization
Co-authored-by: Copilot <[email protected]>
1 parent dbd2069 commit b39ae2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-periman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ typedef struct ATTR_PACKED {
1616
int8_t bus_channel;
1717
} peripheral_pin_item_t;
1818

19-
static peripheral_bus_deinit_cb_t deinit_functions[ESP32_BUS_TYPE_MAX] = { NULL };
19+
static peripheral_bus_deinit_cb_t deinit_functions[ESP32_BUS_TYPE_MAX] = { 0 };
2020
static peripheral_pin_item_t pins[SOC_GPIO_PIN_COUNT];
2121

2222
#define GPIO_NOT_VALID(p) ((p >= SOC_GPIO_PIN_COUNT) || ((SOC_GPIO_VALID_GPIO_MASK & (1ULL << p)) == 0))

0 commit comments

Comments
 (0)