mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
esp32: heltec: change delay
Newer esp-idf has lost ets-delay-us
This commit is contained in:
parent
8782a47a05
commit
b92391050d
1 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,10 @@ lws_netdev_instance_wifi_t *wnd;
|
||||||
static void
|
static void
|
||||||
esp32_i2c_delay(void)
|
esp32_i2c_delay(void)
|
||||||
{
|
{
|
||||||
ets_delay_us(1);
|
volatile int n = 0;
|
||||||
|
|
||||||
|
while (n < 20)
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const lws_bb_i2c_t li2c = {
|
static const lws_bb_i2c_t li2c = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue