Skip to content

Commit 25cc026

Browse files
committed
Reset the I2S interface when switching to the active state. This may resolve #7
1 parent 7fde777 commit 25cc026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: main/system.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ void System::task(void* pvParameters)
100100
ESP_LOGI(TAG, "System active.");
101101
state = State::Active;
102102

103-
// Flush the I2S interface since we've been sub-sampling in idle
104-
I2S::flush_rx();
103+
// Reset the I2S interface since we've been sub-sampling in idle
104+
I2S::reset();
105105
}
106106

107107
if (events & event_set_idle_state)

0 commit comments

Comments
 (0)