mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-28 03:23:07 +00:00
CI: add astyle pre-commit hook
This commit is contained in:
@@ -39,7 +39,7 @@ static void app_event_cb(const ChipDeviceEvent *event, intptr_t arg)
|
||||
break;
|
||||
case chip::DeviceLayer::DeviceEventType::kESPSystemEvent:
|
||||
if (event->Platform.ESPSystemEvent.Base == IP_EVENT &&
|
||||
event->Platform.ESPSystemEvent.Id == IP_EVENT_STA_GOT_IP) {
|
||||
event->Platform.ESPSystemEvent.Id == IP_EVENT_STA_GOT_IP) {
|
||||
#if CONFIG_OPENTHREAD_BORDER_ROUTER
|
||||
static bool sThreadBRInitialized = false;
|
||||
if (!sThreadBRInitialized) {
|
||||
@@ -78,7 +78,8 @@ extern "C" void app_main()
|
||||
#ifdef CONFIG_OPENTHREAD_BORDER_ROUTER
|
||||
#ifdef CONFIG_AUTO_UPDATE_RCP
|
||||
esp_vfs_spiffs_conf_t rcp_fw_conf = {
|
||||
.base_path = "/rcp_fw", .partition_label = "rcp_fw", .max_files = 10, .format_if_mount_failed = false};
|
||||
.base_path = "/rcp_fw", .partition_label = "rcp_fw", .max_files = 10, .format_if_mount_failed = false
|
||||
};
|
||||
if (ESP_OK != esp_vfs_spiffs_register(&rcp_fw_conf)) {
|
||||
ESP_LOGE(TAG, "Failed to mount rcp firmware storage");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user