Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 3, 2023
2 parents 200ca1e + 8664054 commit f685b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ void setup(){
// begin processing
auto cfg = out.defaultConfig();
out.begin(cfg);

out.begin();
}

void loop(){
Expand Down
4 changes: 3 additions & 1 deletion src/AudioAnalog/AnalogAudioESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ class AnalogDriverESP32 : public AnalogDriverBase {
/// stops the I2S and unistalls the driver
void end() override {
LOGI(__func__);
i2s_zero_dma_buffer(port_no);
if (active) {
i2s_zero_dma_buffer(port_no);
}

// close ADC
if (adc_config.rx_tx_mode == RX_MODE){
Expand Down

0 comments on commit f685b97

Please sign in to comment.