fix some CI Lint requests

This commit is contained in:
NP v/d Spek 2024-10-06 02:50:45 +02:00
parent fcffaa5857
commit b541883582
2 changed files with 1 additions and 6 deletions

View file

@ -47,7 +47,7 @@ void ESPNowComponent::dump_config() {
ESP_LOGCONFIG(TAG, " Auto add new peers: %s.", this->auto_add_peer_ ? "Yes" : "No");
ESP_LOGCONFIG(TAG, " Use sent status: %s.", this->use_sent_check_ ? "Yes" : "No");
ESP_LOGCONFIG(TAG, " Conversation timeout: %dms.", this->conformation_timeout_);
ESP_LOGCONFIG(TAG, " Conversation timeout: %" PRIx32 "ms.", this->conformation_timeout_);
ESP_LOGCONFIG(TAG, " Send retries: %d.", this->retries_);
}

View file

@ -111,11 +111,6 @@ struct ESPNowPacket {
valid &= (this->get_protocol() != 0);
return valid;
}
protected:
static uint32_t protocol_(const uint8_t *protocol) {
return (*(protocol + 2) << 0) + (*(protocol + 1) << 8) + (*(protocol + 0) << 16);
}
};
class ESPNowComponent;