mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Activate some clang-tidy checks (#1884)
This commit is contained in:
@@ -6,7 +6,7 @@ namespace zyaura {
|
||||
|
||||
static const char *TAG = "zyaura";
|
||||
|
||||
bool ICACHE_RAM_ATTR ZaDataProcessor::decode(unsigned long ms, bool data) {
|
||||
bool ICACHE_RAM_ATTR ZaDataProcessor::decode(uint32_t ms, bool data) {
|
||||
// check if a new message has started, based on time since previous bit
|
||||
if ((ms - this->prev_ms_) > ZA_MAX_MS) {
|
||||
this->num_bits_ = 0;
|
||||
|
||||
@@ -31,13 +31,13 @@ struct ZaMessage {
|
||||
|
||||
class ZaDataProcessor {
|
||||
public:
|
||||
bool decode(unsigned long ms, bool data);
|
||||
bool decode(uint32_t ms, bool data);
|
||||
ZaMessage *message = new ZaMessage;
|
||||
|
||||
protected:
|
||||
uint8_t buffer_[ZA_MSG_LEN];
|
||||
int num_bits_ = 0;
|
||||
unsigned long prev_ms_;
|
||||
uint32_t prev_ms_;
|
||||
};
|
||||
|
||||
class ZaSensorStore {
|
||||
|
||||
Reference in New Issue
Block a user