mirror of
https://github.com/esphome/esphome.git
synced 2025-09-17 10:42:21 +01:00
Implement more dump_configs (#791)
This commit is contained in:
@@ -115,6 +115,10 @@ void DFPlayer::loop() {
|
||||
this->read_pos_++;
|
||||
}
|
||||
}
|
||||
void DFPlayer::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "DFPlayer:");
|
||||
this->check_uart_settings(9600);
|
||||
}
|
||||
|
||||
} // namespace dfplayer
|
||||
} // namespace esphome
|
||||
|
@@ -52,6 +52,7 @@ class DFPlayer : public uart::UARTDevice, public Component {
|
||||
void random() { this->send_cmd_(0x18); }
|
||||
|
||||
bool is_playing() { return is_playing_; }
|
||||
void dump_config() override;
|
||||
|
||||
void add_on_finished_playback_callback(std::function<void()> callback) {
|
||||
this->on_finished_playback_callback_.add(std::move(callback));
|
||||
|
Reference in New Issue
Block a user