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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user