1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-24 22:22:22 +01:00

Fix SN74HC595 doesn't use ESPHome HAL and add lint checks for it (#1188)

This commit is contained in:
Otto Winter
2020-07-25 14:22:56 +02:00
committed by GitHub
parent 55388724af
commit 0fc8e8d483
7 changed files with 105 additions and 37 deletions

View File

@@ -17,7 +17,8 @@ void UltrasonicSensorComponent::update() {
delayMicroseconds(this->pulse_time_us_);
this->trigger_pin_->digital_write(false);
uint32_t time = pulseIn(this->echo_pin_->get_pin(), uint8_t(!this->echo_pin_->is_inverted()), this->timeout_us_);
uint32_t time = pulseIn( // NOLINT
this->echo_pin_->get_pin(), uint8_t(!this->echo_pin_->is_inverted()), this->timeout_us_);
ESP_LOGV(TAG, "Echo took %uµs", time);