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:
parent
7ccd7e10aa
commit
bad7a28bfd
1 changed files with 4 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue