]> granicus.if.org Git - esp-idf/commitdiff
components esp32/lwip: modify code according to review comments
authorliuzhifu <liuzhifu@espressif.com>
Wed, 26 Oct 2016 06:09:54 +0000 (14:09 +0800)
committerliuzhifu <liuzhifu@espressif.com>
Wed, 26 Oct 2016 06:09:54 +0000 (14:09 +0800)
1. Modify comments for esp_wifi_internal_tx
2. Fix delay time error in esp32_tx_flow_ctrl which is found in code review,
   modify _wait_delay init value from 0 to 1

components/esp32/include/esp_wifi_internal.h
components/lwip/api/sockets.c

index 5100010e52bbb46f566fb2a5674e7b7e471a2e09..217d5f6d1fb66132c2f23491ad03b040e424e0c1 100644 (file)
@@ -60,7 +60,7 @@ bool esp_wifi_internal_tx_is_stop(void);
 void esp_wifi_internal_free_rx_buffer(void* buffer);
 
 /**
-  * @brief  free the rx buffer which allocated by wifi driver
+  * @brief  transmit the buffer via wifi driver
   *
   * @attention1 TODO should modify the return type from bool to int
   * 
index 47f25bb076ab40fae3007a6685b8dc316ea7380e..487bec8e8e5a1a1f8908165d7db182f349358b8f 100755 (executable)
@@ -400,7 +400,7 @@ static void lwip_socket_drop_registered_memberships(int s);
  */ 
 static inline void esp32_tx_flow_ctrl(void)
 {
-  uint8_t _wait_delay = 0;
+  uint8_t _wait_delay = 1;
 
   while ((system_get_free_heap_size() < HEAP_HIGHWAT) || esp_wifi_internal_tx_is_stop()){
      vTaskDelay(_wait_delay/portTICK_RATE_MS);