Skip to content

Commit

Permalink
fix logic for channel 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrendt committed Aug 8, 2024
1 parent fd17299 commit f287916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esphome/components/nabu_microphone/nabu_microphone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ void NabuMicrophone::read_task_(void *params) {
if (this_microphone->channel_1_ != nullptr) {
this_microphone->channel_1_->get_ring_buffer()->write((void *) channel_1_samples.data(),
bytes_to_write);
} else {
}
if (this_microphone->channel_2_ != nullptr) {
this_microphone->channel_2_->get_ring_buffer()->write((void *) channel_2_samples.data(),
bytes_to_write);
}
Expand Down

0 comments on commit f287916

Please sign in to comment.