Skip to content

Commit

Permalink
Update esphome/components/voice_kit/voice_kit.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kbx81 authored Aug 30, 2024
1 parent 037c5e6 commit 0eeeeb3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions esphome/components/voice_kit/voice_kit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ void VoiceKit::setup() {
ESP_LOGCONFIG(TAG, "Setting up Voice Kit...");

// Reset device using the reset pin
if (this->reset_pin_ != nullptr) {
this->reset_pin_->setup();
this->reset_pin_->digital_write(true);
delay(1);
this->reset_pin_->digital_write(false);
}
this->reset_pin_->setup();
this->reset_pin_->digital_write(true);
delay(1);
this->reset_pin_->digital_write(false);
// Wait for XMOS to boot...
this->set_timeout(3000, [this]() {
if (!this->dfu_get_version_()) {
Expand Down

0 comments on commit 0eeeeb3

Please sign in to comment.