1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00

[sensor] Convert LOG_SENSOR macro to function to reduce flash usage (#10290)

This commit is contained in:
J. Nick Koston
2025-08-19 21:35:45 -05:00
committed by GitHub
parent 3964f9794b
commit 0eab908b0e
9 changed files with 48 additions and 38 deletions

View File

@@ -17,7 +17,7 @@ void IRAM_ATTR PulseWidthSensorStore::gpio_intr(PulseWidthSensorStore *arg) {
}
void PulseWidthSensor::dump_config() {
LOG_SENSOR("", "Pulse Width", this)
LOG_SENSOR("", "Pulse Width", this);
LOG_UPDATE_INTERVAL(this)
LOG_PIN(" Pin: ", this->pin_);
}