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; } };