mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 19:44:53 +01:00
fix an other set of issues
This commit is contained in:
parent
fa9d874ce6
commit
db5d0551c6
2 changed files with 2 additions and 11 deletions
|
@ -135,14 +135,14 @@ void ESPNowComponent::setup() {
|
||||||
|
|
||||||
err = esp_now_register_recv_cb(ESPNowComponent::on_data_received);
|
err = esp_now_register_recv_cb(ESPNowComponent::on_data_received);
|
||||||
if (err != ESP_OK) {
|
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();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = esp_now_register_send_cb(ESPNowComponent::on_data_sent);
|
err = esp_now_register_send_cb(ESPNowComponent::on_data_sent);
|
||||||
if (err != ESP_OK) {
|
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();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,19 +2,10 @@
|
||||||
|
|
||||||
#if defined(USE_ESP32)
|
#if defined(USE_ESP32)
|
||||||
|
|
||||||
#include "esphome/core/automation.h"
|
|
||||||
#include "esphome/core/component.h"
|
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
#include "esphome/core/log.h"
|
|
||||||
|
|
||||||
#include <esp_now.h>
|
|
||||||
#include "esp_crc.h"
|
#include "esp_crc.h"
|
||||||
|
|
||||||
#include <array>
|
|
||||||
#include <memory>
|
|
||||||
#include <queue>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace espnow {
|
namespace espnow {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue