mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	| @@ -43,7 +43,7 @@ bool CSE7766Component::check_byte_() { | |||||||
|   uint8_t index = this->raw_data_index_; |   uint8_t index = this->raw_data_index_; | ||||||
|   uint8_t byte = this->raw_data_[index]; |   uint8_t byte = this->raw_data_[index]; | ||||||
|   if (index == 0) { |   if (index == 0) { | ||||||
|     return !((byte != 0x55) && ((byte & 0xF0) != 0xF0) && (byte != 0xAA)); |     return (byte == 0x55) || ((byte & 0xF0) == 0xF0) || (byte == 0xAA); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   if (index == 1) { |   if (index == 1) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user