Merge pull request #11964 from gschorcht/cpu/esp32/esp_wifi/fix_send_return_value

cpu/esp32: fix of the return code in esp_wifi_send
This commit is contained in:
MichelRottleuthner 2019-08-05 18:50:52 +02:00 committed by GitHub
commit a55e1fcb15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,6 +336,7 @@ static int _esp_wifi_send(netdev_t *netdev, const iolist_t *iolist)
/* send the the packet to the peer(s) mac address */ /* send the the packet to the peer(s) mac address */
if (esp_wifi_internal_tx(ESP_IF_WIFI_STA, dev->tx_buf, dev->tx_len) == ESP_OK) { if (esp_wifi_internal_tx(ESP_IF_WIFI_STA, dev->tx_buf, dev->tx_len) == ESP_OK) {
ret = dev->tx_len;
netdev->event_callback(netdev, NETDEV_EVENT_TX_COMPLETE); netdev->event_callback(netdev, NETDEV_EVENT_TX_COMPLETE);
} }
else { else {