fix an other set of issues

This commit is contained in:
NP v/d Spek 2024-08-25 05:34:29 +02:00
parent db5d0551c6
commit ab643f1c70
2 changed files with 3 additions and 3 deletions
esphome/components/espnow

View file

@ -373,7 +373,7 @@ void ESPNowComponent::on_data_sent(const uint8_t *mac_addr, esp_now_send_status_
ESP_LOGE(TAG, "sent packet failed (0x%04x.%d)", packet.ref_id, packet.retrys);
} else if (packet.mac64 != mac64) {
ESP_LOGE(TAG, " Invalid mac address. (0x%04x.%d) expected: %s got %s", packet.ref_id, packet.retrys,
packet.to_str().c_str(), packet.to_str(mac64));
packet.to_str().c_str(), packet.to_str(mac64).c_str());
} else {
ESP_LOGV(TAG, "Confirm sent (0x%04x.%d)", packet.ref_id, packet.retrys);
global_esp_now->unlock();

View file

@ -1,6 +1,6 @@
#include "espnow_packet.h"
#if defined(USE_ESP32)
#if defined(USE_ESP32)
#include "espnow_packet.h"
#include "esphome/core/log.h"
static const char *const TAG = "espnow_packet";