comment out some code

This commit is contained in:
NP v/d Spek 2024-09-30 03:37:38 +02:00
parent dfb913e8bc
commit d89c3139b4
2 changed files with 7 additions and 2 deletions

5
esphome/components/espnow/.gitignore vendored Normal file
View file

@ -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

View file

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