Fix dev branch

This commit is contained in:
Otto Winter 2019-10-13 13:51:34 +02:00
parent 7c31592850
commit 38dfab11b4
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -11,7 +11,6 @@ void SPIAS3935Component::setup() {
this->spi_setup();
ESP_LOGI(TAG, "SPI setup finished!");
AS3935Component::setup();
}
void SPIAS3935Component::dump_config() {
@ -37,7 +36,7 @@ uint8_t SPIAS3935Component::read_register(uint8_t reg) {
this->write_byte(reg |= SPI_READ_M);
value = this->read_byte();
// 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(false);
this->disable();