diff --git a/IR_config.h b/IR_config.h index 0a20143..33e7750 100644 --- a/IR_config.h +++ b/IR_config.h @@ -169,7 +169,7 @@ public: uint16_t rTime = 0; }; - static void checkaddressRuleApply(uint16_t address, uint16_t id, bool& flag) { + static void checkAddressRuleApply(uint16_t address, uint16_t id, bool& flag) { flag = false; flag |= id == 0; flag |= address == id; diff --git a/PacketTypes.h b/PacketTypes.h index 4bb8e58..1be5101 100644 --- a/PacketTypes.h +++ b/PacketTypes.h @@ -89,7 +89,7 @@ namespace PacketTypes { private: bool checkAddress() override { bool ret; - IR_FOX::checkaddressRuleApply(getAddrTo(), this->id, ret); + IR_FOX::checkAddressRuleApply(getAddrTo(), this->id, ret); return ret; } }; @@ -114,7 +114,7 @@ namespace PacketTypes { bool ret; if (getMsgType() == IR_MSG_BACK_TO) { DataOffset = 5; - IR_FOX::checkaddressRuleApply((packInfo->buffer[addressToOffset] << 8) | packInfo->buffer[addressToOffset + 1], this->id, ret); + IR_FOX::checkAddressRuleApply((packInfo->buffer[addressToOffset] << 8) | packInfo->buffer[addressToOffset + 1], this->id, ret); } else { DataOffset = 3; ret = true; @@ -152,7 +152,7 @@ namespace PacketTypes { private: bool checkAddress() override { bool ret; - IR_FOX::checkaddressRuleApply(getAddrTo(), this->id, ret); + IR_FOX::checkAddressRuleApply(getAddrTo(), this->id, ret); return ret; } }; @@ -250,7 +250,7 @@ namespace PacketTypes { // protected: // bool checkAddress() override { // bool ret; -// checkaddressRuleApply(getAddrTo(), this->id, ret); +// checkAddressRuleApply(getAddrTo(), this->id, ret); // return ret; // } // }; @@ -271,7 +271,7 @@ namespace PacketTypes { // bool ret; // if (getMsgType() == IR_MSG_BACK_TO) { // DataOffset = 5; -// checkaddressRuleApply((packInfo->buffer[addressToOffset] << 8) | packInfo->buffer[addressToOffset + 1], this->id, ret); +// checkAddressRuleApply((packInfo->buffer[addressToOffset] << 8) | packInfo->buffer[addressToOffset + 1], this->id, ret); // } else { // DataOffset = 3; // ret = true; @@ -294,7 +294,7 @@ namespace PacketTypes { // protected: // bool checkAddress() override { // bool ret; -// checkaddressRuleApply(getAddrTo(), this->id, ret); +// checkAddressRuleApply(getAddrTo(), this->id, ret); // return ret; // } // };