1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[sm2135] Combine log statements to reduce loop blocking (#12963)

This commit is contained in:
J. Nick Koston
2026-01-04 16:54:17 -10:00
committed by GitHub
parent 9128fc3120
commit 47223965b6

View File

@@ -34,11 +34,13 @@ void SM2135::setup() {
}
void SM2135::dump_config() {
ESP_LOGCONFIG(TAG, "SM2135:");
ESP_LOGCONFIG(TAG,
"SM2135:\n"
" CW Current: %dmA\n"
" RGB Current: %dmA",
10 + (this->cw_current_ * 5), 10 + (this->rgb_current_ * 5));
LOG_PIN(" Data Pin: ", this->data_pin_);
LOG_PIN(" Clock Pin: ", this->clock_pin_);
ESP_LOGCONFIG(TAG, " CW Current: %dmA", 10 + (this->cw_current_ * 5));
ESP_LOGCONFIG(TAG, " RGB Current: %dmA", 10 + (this->rgb_current_ * 5));
}
void SM2135::write_byte_(uint8_t data) {