We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f3aba8 commit ffcd967Copy full SHA for ffcd967
src/current_sense/hardware_specific/esp32/esp32_i2s_driver.cpp
@@ -67,6 +67,8 @@ unsigned long IRAM_ATTR fifotime = 0;
67
// The ADC counts get saved in uint32_t i2s_adc_buffer[].
68
void IRAM_ATTR readFiFo()
69
{
70
+ CLEAR_PERI_REG_MASK(I2S_CONF_REG(0), I2S_RX_START); // Stop aquisition to buffer
71
+
72
// uint32_t readings[ADC1_CHANNEL_MAX][ADC1_CHANNEL_MAX*BUF_LEN];
73
uint32_t avgreadings[ADC1_CHANNEL_MAX] = {0};
74
uint32_t counts[ADC1_CHANNEL_MAX] = {0};
@@ -173,6 +175,8 @@ void IRAM_ATTR readFiFo()
173
175
// Serial.printf(">Channel%d:%d\n", j, i2s_adc_buffer[j]);
174
176
}
177
}*/
178
179
+ SET_PERI_REG_MASK(I2S_CONF_REG(0), I2S_RX_START); // Restart aquisition to buffer
180
181
182
#if I2S_USE_INTERRUPT == true
0 commit comments