mirror of
https://github.com/esphome/esphome.git
synced 2026-01-10 04:00:51 -07:00
[spi_device] Combine log statements to reduce loop blocking (#12967)
This commit is contained in:
@@ -11,9 +11,11 @@ static const char *const TAG = "spi_device";
|
||||
void SPIDeviceComponent::setup() { this->spi_setup(); }
|
||||
|
||||
void SPIDeviceComponent::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "SPIDevice");
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"SPIDevice\n"
|
||||
" Mode: %d",
|
||||
this->mode_);
|
||||
LOG_PIN(" CS pin: ", this->cs_);
|
||||
ESP_LOGCONFIG(TAG, " Mode: %d", this->mode_);
|
||||
if (this->data_rate_ < 1000000) {
|
||||
ESP_LOGCONFIG(TAG, " Data rate: %" PRId32 "kHz", this->data_rate_ / 1000);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user