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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user