mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 20:52:20 +01:00
preen
This commit is contained in:
@@ -142,8 +142,7 @@ void WeikaiRegisterI2C::write_fifo(uint8_t *data, size_t length) {
|
|||||||
void WeikaiComponentI2C::setup() {
|
void WeikaiComponentI2C::setup() {
|
||||||
// before any manipulation we store the address to base_address_ for future use
|
// before any manipulation we store the address to base_address_ for future use
|
||||||
this->base_address_ = this->address_;
|
this->base_address_ = this->address_;
|
||||||
ESP_LOGCONFIG(TAG, "Running setup for '%s' with %d UARTs at @%02X", this->get_name(), this->children_.size(),
|
ESP_LOGCONFIG(TAG, "Setup %s (%d UARTs) @ 0x%02X", this->get_name(), this->children_.size(), this->base_address_);
|
||||||
this->base_address_);
|
|
||||||
|
|
||||||
// enable all channels
|
// enable all channels
|
||||||
this->reg(WKREG_GENA, 0) = GENA_C1EN | GENA_C2EN | GENA_C3EN | GENA_C4EN;
|
this->reg(WKREG_GENA, 0) = GENA_C1EN | GENA_C2EN | GENA_C3EN | GENA_C4EN;
|
||||||
|
Reference in New Issue
Block a user