Skip to content

Commit

Permalink
fix esp8285_socket_send to fit mbedtls send timing
Browse files Browse the repository at this point in the history
  • Loading branch information
junhuanchen committed May 10, 2020
1 parent ec75062 commit e83c879
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ STATIC mp_uint_t esp8285_socket_send(mod_network_socket_obj_t *socket, const byt
*_errno = MP_EPIPE;
return MP_STREAM_ERROR;
}
// printk("%s len %d\r\n", __func__, len);
mp_hal_delay_us(len * 50); // maybe 50 us time required to send per byte
// vTaskDelay(len / portTICK_PERIOD_MS);
return len;
}

Expand Down

0 comments on commit e83c879

Please sign in to comment.