1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

esp32: heltec: change delay

Newer esp-idf has lost ets-delay-us
This commit is contained in:
Andy Green 2022-02-24 08:08:48 +00:00
parent 7ccd7e10aa
commit bad7a28bfd

View file

@ -31,7 +31,10 @@ lws_netdev_instance_wifi_t *wnd;
static void
esp32_i2c_delay(void)
{
ets_delay_us(1);
volatile int n = 0;
while (n < 20)
n++;
}
static const lws_bb_i2c_t li2c = {