1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-01 18:50:55 +00:00

remove header logs

This commit is contained in:
NP v/d Spek 2024-09-29 19:44:20 +02:00
parent c35d7c0968
commit 1874f47767

View File

@ -7,8 +7,6 @@
#include "esphome/core/helpers.h" #include "esphome/core/helpers.h"
#include "esphome/core/bytebuffer.h" #include "esphome/core/bytebuffer.h"
#include "esphome/core/log.h"
#include <esp_now.h> #include <esp_now.h>
#include <esp_crc.h> #include <esp_crc.h>
@ -267,28 +265,21 @@ template<typename... Ts> class SendAction : public Action<Ts...>, public Parente
void set_data_template(std::function<ByteBuffer(Ts...)> func) { void set_data_template(std::function<ByteBuffer(Ts...)> func) {
this->data_func_ = func; this->data_func_ = func;
this->static_ = false; this->static_ = false;
ESP_LOGCONFIG("ESPNOW:SendAction", "Add ByteBuffer lambda value to send");
} }
void set_data_static(const std::vector<uint8_t> &data) { void set_data_static(const std::vector<uint8_t> &data) {
this->data_static_ = data; this->data_static_ = data;
this->static_ = true; this->static_ = true;
ESP_LOGCONFIG("ESPNOW:SendAction", "Add static std:vector value to send");
} }
void play(Ts... x) override { void play(Ts... x) override {
ESP_LOGI("ESPNOW:SendAction", "Execute Play."); uint64_t mac = this->mac_.value(x...);
/*
uint64_t mac = this->mac_.value(x...);
if (this->static_) { if (this->static_) {
ESP_LOGI("ESPNOW:SendAction", "Action Send static std:vector value now."); this->parent_->get_default_protocol()->send(mac, this->data_static_.data(), this->data_static_.size());
// this->parent_->get_default_protocol()->send(mac, this->data_static_.data(), this->data_static_.size()); } else {
} else { ByteBuffer data = this->data_func_(x...);
ESP_LOGI("ESPNOW:SendAction", "Action Send ByteBuffer lambda value now"); this->parent_->get_default_protocol()->send(mac, data.get_data().data(), (uint8_t) data.get_used_space());
ByteBuffer data = this->data_func_(x...); }
// this->parent_->get_default_protocol()->send(mac, data.get_data().data(), (uint8_t) data.get_used_space());
}
*/
} }
protected: protected: