mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
fix an other set of issues
This commit is contained in:
parent
db5d0551c6
commit
ab643f1c70
2 changed files with 3 additions and 3 deletions
esphome/components/espnow
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue