mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
comment out some code
This commit is contained in:
parent
dfb913e8bc
commit
d89c3139b4
2 changed files with 7 additions and 2 deletions
5
esphome/components/espnow/.gitignore
vendored
Normal file
5
esphome/components/espnow/.gitignore
vendored
Normal 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
|
|
@ -98,8 +98,8 @@ struct ESPNowPacket {
|
||||||
inline void retry() ESPHOME_ALWAYS_INLINE { attempts++; }
|
inline void retry() ESPHOME_ALWAYS_INLINE { attempts++; }
|
||||||
|
|
||||||
inline bool is_valid() const {
|
inline bool is_valid() const {
|
||||||
bool valid = (memcmp((const void *) this->content_as_bytes(), (const void *) &TRANSPORT_HEADER, 3) == 0);
|
// bool valid = (memcmp((const void *) this->content_as_bytes(), (const void *) &TRANSPORT_HEADER, 3) == 0);
|
||||||
valid &= (this->protocol() != 0);
|
// valid &= (this->protocol() != 0);
|
||||||
return true; // valid;
|
return true; // valid;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue