mirror of
https://github.com/esphome/esphome.git
synced 2025-02-01 18:50:55 +00:00
comment out some code
This commit is contained in:
parent
dfb913e8bc
commit
d89c3139b4
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…
x
Reference in New Issue
Block a user