Procházet zdrojové kódy

esp_event: event stack overflow

shangke před 9 roky
rodič
revize
53b0b03e63
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      components/esp32/Kconfig
  2. 1 1
      components/ethernet/emac_main.c

+ 1 - 1
components/esp32/Kconfig

@@ -113,7 +113,7 @@ config SYSTEM_EVENT_QUEUE_SIZE
 
 config SYSTEM_EVENT_TASK_STACK_SIZE
     int "Event loop task stack size"
-    default 2048
+    default 4096
     help
         Config system event task stack size in different application.
 

+ 1 - 1
components/ethernet/emac_main.c

@@ -588,7 +588,7 @@ esp_err_t esp_eth_tx(uint8_t *buf, uint16_t size)
     if (emac_config.emac_status != EMAC_RUNTIME_START || emac_config.emac_status == EMAC_RUNTIME_NOT_INIT) {
         ESP_LOGI(TAG, "tx netif close");
         ret = ERR_IF;
-        goto _exit;
+        return ret;
     }
 
     xSemaphoreTakeRecursive( emac_tx_xMutex, ( TickType_t ) portMAX_DELAY );