From db4d3e009842e16a2709d91bf28f3e7bcf239d8c Mon Sep 17 00:00:00 2001 From: Pablo Mendoza Date: Mon, 8 May 2017 03:33:20 -0500 Subject: [PATCH] Free memory we allocated and actually stop i2s. (#3191) --- 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 3a7ca505e..a154ac85d 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