Clean-up reverse_bits helpers (#3011)

This commit is contained in:
Oxan van Leeuwen authored and GitHub committed 2022-01-07 00:54:58 +13:00
1 parent 5e1e543b06
commit a4931f5d78
4 files changed
+20 -22

No files matched your search

@@ -9,8 +9,8 @@ static const char *const TAG = "remote.midea";
uint8_t MideaData::calc_cs_() const {
uint8_t cs = 0;
for (const uint8_t *it = this->data(); it != this->data() + OFFSET_CS; ++it)
cs -= reverse_bits_8(*it);
return reverse_bits_8(cs);
cs -= reverse_bits(*it);
return reverse_bits(cs);
}
bool MideaData::check_compliment(const MideaData &rhs) const {