diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 1ca0b57..738dec6 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -249,27 +249,27 @@ namespace ratgdo { void RATGDOComponent::printRollingCode() { - ESP_LOGD(TAG, "Counter: %d Send code: %x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x", + ESP_LOGD(TAG, "Counter: %d Send code: [%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x][%02x]", this->rollingCodeCounter, - this->txRollingCode[0] <= 0x0f ? 0 : this->txRollingCode[0], - this->txRollingCode[1] <= 0x0f ? 0 : this->txRollingCode[1], - this->txRollingCode[2] <= 0x0f ? 0 : this->txRollingCode[2], - this->txRollingCode[3] <= 0x0f ? 0 : this->txRollingCode[3], - this->txRollingCode[4] <= 0x0f ? 0 : this->txRollingCode[4], - this->txRollingCode[5] <= 0x0f ? 0 : this->txRollingCode[5], - this->txRollingCode[6] <= 0x0f ? 0 : this->txRollingCode[6], - this->txRollingCode[7] <= 0x0f ? 0 : this->txRollingCode[7], - this->txRollingCode[8] <= 0x0f ? 0 : this->txRollingCode[8], - this->txRollingCode[9] <= 0x0f ? 0 : this->txRollingCode[9], - this->txRollingCode[10] <= 0x0f ? 0 : this->txRollingCode[10], - this->txRollingCode[11] <= 0x0f ? 0 : this->txRollingCode[11], - this->txRollingCode[12] <= 0x0f ? 0 : this->txRollingCode[12], - this->txRollingCode[13] <= 0x0f ? 0 : this->txRollingCode[13], - this->txRollingCode[14] <= 0x0f ? 0 : this->txRollingCode[14], - this->txRollingCode[15] <= 0x0f ? 0 : this->txRollingCode[15], - this->txRollingCode[16] <= 0x0f ? 0 : this->txRollingCode[16], - this->txRollingCode[17] <= 0x0f ? 0 : this->txRollingCode[17], - this->txRollingCode[18] <= 0x0f ? 0 : this->txRollingCode[18]); + this->txRollingCode[0], + this->txRollingCode[1], + this->txRollingCode[2], + this->txRollingCode[3], + this->txRollingCode[4], + this->txRollingCode[5], + this->txRollingCode[6], + this->txRollingCode[7], + this->txRollingCode[8], + this->txRollingCode[9], + this->txRollingCode[10], + this->txRollingCode[11], + this->txRollingCode[12], + this->txRollingCode[13], + this->txRollingCode[14], + this->txRollingCode[15], + this->txRollingCode[16], + this->txRollingCode[17], + this->txRollingCode[18]); } // handle changes to the dry contact state