mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 20:32:21 +01:00
Fix dev branch
This commit is contained in:
@@ -11,7 +11,6 @@ void SPIAS3935Component::setup() {
|
|||||||
this->spi_setup();
|
this->spi_setup();
|
||||||
ESP_LOGI(TAG, "SPI setup finished!");
|
ESP_LOGI(TAG, "SPI setup finished!");
|
||||||
AS3935Component::setup();
|
AS3935Component::setup();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SPIAS3935Component::dump_config() {
|
void SPIAS3935Component::dump_config() {
|
||||||
@@ -37,7 +36,7 @@ uint8_t SPIAS3935Component::read_register(uint8_t reg) {
|
|||||||
this->write_byte(reg |= SPI_READ_M);
|
this->write_byte(reg |= SPI_READ_M);
|
||||||
value = this->read_byte();
|
value = this->read_byte();
|
||||||
// According to datsheet, the chip select must be written HIGH, LOW, HIGH
|
// According to datsheet, the chip select must be written HIGH, LOW, HIGH
|
||||||
// to correctly end the READ command.
|
// to correctly end the READ command.
|
||||||
this->cs_->digital_write(true);
|
this->cs_->digital_write(true);
|
||||||
this->cs_->digital_write(false);
|
this->cs_->digital_write(false);
|
||||||
this->disable();
|
this->disable();
|
||||||
|
Reference in New Issue
Block a user