From d89c3139b49ba5e419462d97119a1fa30d5000d3 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Mon, 30 Sep 2024 03:37:38 +0200 Subject: [PATCH] comment out some code --- esphome/components/espnow/.gitignore | 5 +++++ esphome/components/espnow/espnow.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 esphome/components/espnow/.gitignore diff --git a/esphome/components/espnow/.gitignore b/esphome/components/espnow/.gitignore new file mode 100644 index 0000000000..d8b4157aef --- /dev/null +++ b/esphome/components/espnow/.gitignore @@ -0,0 +1,5 @@ +# Gitignore settings for ESPHome +# This is an example and may include too much for your use-case. +# You can modify this file to suit your needs. +/.esphome/ +/secrets.yaml diff --git a/esphome/components/espnow/espnow.h b/esphome/components/espnow/espnow.h index 363f5c024f..1cd77f3fd2 100644 --- a/esphome/components/espnow/espnow.h +++ b/esphome/components/espnow/espnow.h @@ -98,8 +98,8 @@ struct ESPNowPacket { inline void retry() ESPHOME_ALWAYS_INLINE { attempts++; } inline bool is_valid() const { - bool valid = (memcmp((const void *) this->content_as_bytes(), (const void *) &TRANSPORT_HEADER, 3) == 0); - valid &= (this->protocol() != 0); + // bool valid = (memcmp((const void *) this->content_as_bytes(), (const void *) &TRANSPORT_HEADER, 3) == 0); + // valid &= (this->protocol() != 0); return true; // valid; } };