Revert "fix"

This reverts commit c22ab99931.
This commit is contained in:
J. Nick Koston 2023-06-05 17:15:49 -05:00
parent 0a3edf52d0
commit fa336f60e3
No known key found for this signature in database
1 changed files with 5 additions and 27 deletions

View File

@ -253,33 +253,11 @@ namespace ratgdo {
void RATGDOComponent::printRollingCode() void RATGDOComponent::printRollingCode()
{ {
for (int i = 0; i < CODE_LENGTH; i++) {
char code[CODE_LENGTH]; if (this->rollingCode[i] <= 0x0f)
snprintf(code, sizeof(code), ESP_LOGD(TAG, "0");
"%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X%01X", ESP_LOGD(TAG, "%x", this->rollingCode[i]);
this->rollingCode[0], }
this->rollingCode[1],
this->rollingCode[2],
this->rollingCode[3],
this->rollingCode[4],
this->rollingCode[5],
this->rollingCode[6],
this->rollingCode[7],
this->rollingCode[8],
this->rollingCode[9],
this->rollingCode[10],
this->rollingCode[11],
this->rollingCode[12],
this->rollingCode[13],
this->rollingCode[14],
this->rollingCode[15],
this->rollingCode[16],
this->rollingCode[17],
this->rollingCode[18]
);
ESP_LOGD(TAG, "Rolling Code: %s", code);
} }
void RATGDOComponent::set_rolling_codes(bool useRollingCodes) void RATGDOComponent::set_rolling_codes(bool useRollingCodes)