fix an other set of issues

This commit is contained in:
NP v/d Spek 2024-08-25 05:28:40 +02:00
parent fa9d874ce6
commit db5d0551c6
2 changed files with 2 additions and 11 deletions

View file

@ -135,14 +135,14 @@ void ESPNowComponent::setup() {
err = esp_now_register_recv_cb(ESPNowComponent::on_data_received);
if (err != ESP_OK) {
ESP_LOGE("esp_now_register_recv_cb failed: %s", esp_err_to_name(err));
ESP_LOGE(TAG, "esp_now_register_recv_cb failed: %s", esp_err_to_name(err));
this->mark_failed();
return;
}
err = esp_now_register_send_cb(ESPNowComponent::on_data_sent);
if (err != ESP_OK) {
ESP_LOGE("esp_now_register_send_cb failed: %s", esp_err_to_name(err));
ESP_LOGE(TAG, "esp_now_register_send_cb failed: %s", esp_err_to_name(err));
this->mark_failed();
return;
}

View file

@ -2,19 +2,10 @@
#if defined(USE_ESP32)
#include "esphome/core/automation.h"
#include "esphome/core/component.h"
#include "esphome/core/helpers.h"
#include "esphome/core/log.h"
#include <esp_now.h>
#include "esp_crc.h"
#include <array>
#include <memory>
#include <queue>
#include <vector>
namespace esphome {
namespace espnow {