From ea0699cad36c86c7d1a12f67e1fcce21b4cb276d Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 28 Mar 2018 06:56:47 -0700 Subject: [PATCH] Fix example formatting, ugh. --- cores/esp8266/core_esp8266_i2s.c | 2 +- libraries/esp8266/examples/I2STransmit/I2STransmit.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp8266/core_esp8266_i2s.c b/cores/esp8266/core_esp8266_i2s.c index 0264c89f3a..53ad05f941 100644 --- a/cores/esp8266/core_esp8266_i2s.c +++ b/cores/esp8266/core_esp8266_i2s.c @@ -222,7 +222,7 @@ static void i2s_slc_begin() { SLCC0 &= ~(SLCMM << SLCM); // Clear DMA MODE SLCC0 |= (1 << SLCM); // Set DMA MODE to 1 SLCRXDC |= SLCBINR | SLCBTNR; // Enable INFOR_NO_REPLACE and TOKEN_NO_REPLACE - SLCRXDC &= ~(/*SLCBRXFE |*/ SLCBRXEM | SLCBRXFM); // Disable RX_FILL, RX_EOF_MODE and RX_FILL_MODE + SLCRXDC &= ~(SLCBRXFE | SLCBRXEM | SLCBRXFM); // Disable RX_FILL, RX_EOF_MODE and RX_FILL_MODE //Feed DMA the 1st buffer desc addr //To send data to the I2S subsystem, counter-intuitively we use the RXLINK part, not the TXLINK as you might diff --git a/libraries/esp8266/examples/I2STransmit/I2STransmit.ino b/libraries/esp8266/examples/I2STransmit/I2STransmit.ino index 17c5cbd985..cdf2cfd0f7 100644 --- a/libraries/esp8266/examples/I2STransmit/I2STransmit.ino +++ b/libraries/esp8266/examples/I2STransmit/I2STransmit.ino @@ -62,7 +62,7 @@ void loop() { static int cnt = 0; // Each loop will send 100 raw samples (400 bytes) // UDP needs to be < TCP_MSS which can be 500 bytes in LWIP2 - for (int i=0; i<100; i++) { + for (int i = 0; i < 100; i++) { i2s_read_sample(&buffer[i][0], &buffer[i][1], true); } udp.beginPacket(listener, port);