mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-02 02:58:26 +02:00
Fix clang-tidy header filter (#2385)
* Fix clang-tidy header filter * Allow private members * Fix clang-tidy detections * Run clang-format * Fix remaining detections * Fix graph * Run clang-format
This commit is contained in:
@@ -9,7 +9,7 @@ namespace remote_transmitter {
|
||||
|
||||
static const char *const TAG = "remote_transmitter";
|
||||
|
||||
void RemoteTransmitterComponent::setup() { this->configure_rmt(); }
|
||||
void RemoteTransmitterComponent::setup() { this->configure_rmt_(); }
|
||||
|
||||
void RemoteTransmitterComponent::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Remote Transmitter...");
|
||||
@@ -27,7 +27,7 @@ void RemoteTransmitterComponent::dump_config() {
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteTransmitterComponent::configure_rmt() {
|
||||
void RemoteTransmitterComponent::configure_rmt_() {
|
||||
rmt_config_t c{};
|
||||
|
||||
this->config_rmt(c);
|
||||
@@ -77,7 +77,7 @@ void RemoteTransmitterComponent::send_internal(uint32_t send_times, uint32_t sen
|
||||
|
||||
if (this->current_carrier_frequency_ != this->temp_.get_carrier_frequency()) {
|
||||
this->current_carrier_frequency_ = this->temp_.get_carrier_frequency();
|
||||
this->configure_rmt();
|
||||
this->configure_rmt_();
|
||||
}
|
||||
|
||||
this->rmt_temp_.clear();
|
||||
@@ -89,7 +89,7 @@ void RemoteTransmitterComponent::send_internal(uint32_t send_times, uint32_t sen
|
||||
bool level = val >= 0;
|
||||
if (!level)
|
||||
val = -val;
|
||||
val = this->from_microseconds(static_cast<uint32_t>(val));
|
||||
val = this->from_microseconds_(static_cast<uint32_t>(val));
|
||||
|
||||
do {
|
||||
int32_t item = std::min(val, int32_t(32767));
|
||||
|
||||
Reference in New Issue
Block a user