From cb7539655278eabd111c25db8fdbd263a07ec299 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Wed, 18 Nov 2015 22:17:49 -0800 Subject: [PATCH] extend reset for esp8266 --- serial/serbridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serial/serbridge.c b/serial/serbridge.c index 7814d88..8d400fd 100644 --- a/serial/serbridge.c +++ b/serial/serbridge.c @@ -145,7 +145,7 @@ serbridgeReset() os_printf("MCU reset gpio%d\n", mcu_reset_pin); #endif GPIO_OUTPUT_SET(mcu_reset_pin, 0); - os_delay_us(100L); + os_delay_us(2000L); // esp8266 needs at least 1ms reset pulse, it seems... GPIO_OUTPUT_SET(mcu_reset_pin, 1); } #ifdef SERBR_DBG @@ -320,7 +320,7 @@ static void ICACHE_FLASH_ATTR serbridgeSentCb(void *arg) { serbridgeConnData *conn = ((struct espconn*)arg)->reverse; - os_printf("Sent CB %p\n", conn); + //os_printf("Sent CB %p\n", conn); if (conn == NULL) return; //os_printf("%d ST\n", system_get_time()); if (conn->sentbuffer != NULL) os_free(conn->sentbuffer);