From b3ca1023e813f04fdfc1449a143c5ce3ff31ca66 Mon Sep 17 00:00:00 2001 From: Robin Thoni Date: Mon, 24 Jun 2024 08:26:58 +0000 Subject: [PATCH] added logs for outgoing commands --- esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp b/esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp index f8ef6c7138..7cb96a859e 100644 --- a/esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp +++ b/esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp @@ -84,6 +84,7 @@ uint8_t DfrobotSen0395Component::find_prompt_() { uint8_t DfrobotSen0395Component::send_cmd_(const char *cmd, uint32_t duration) { // The interval between two commands must be larger than the specified duration (in ms). if (millis() - ts_last_cmd_sent_ > duration) { + ESP_LOGV(TAG, "Command: %s", cmd); this->write_str(cmd); ts_last_cmd_sent_ = millis(); return 1; // Command sent