From 368bbecc34d92c825f627ba8287cd8874d441864 Mon Sep 17 00:00:00 2001 From: jpmendoza Date: Tue, 2 May 2017 17:08:37 -0500 Subject: [PATCH] Free memory we allocated and actually stop i2s. --- cores/esp8266/core_esp8266_i2s.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_i2s.c b/cores/esp8266/core_esp8266_i2s.c index 3a7ca505ed..a154ac85d5 100644 --- a/cores/esp8266/core_esp8266_i2s.c +++ b/cores/esp8266/core_esp8266_i2s.c @@ -146,6 +146,10 @@ void ICACHE_FLASH_ATTR i2s_slc_end(){ SLCIE = 0; SLCTXL &= ~(SLCTXLAM << SLCTXLA); // clear TX descriptor address SLCRXL &= ~(SLCRXLAM << SLCRXLA); // clear RX descriptor address + + for (int x = 0; x