mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
added logs for outgoing commands
This commit is contained in:
parent
1e05bcaa61
commit
b3ca1023e8
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue