Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Revert ultrasonic sensor to non-interrupt mode #562

Merged
merged 5 commits into from
Mar 24, 2019
Merged

Conversation

OttoWinter
Copy link
Member

Description:

The ultrasonic sensors must be generating a short pulse on the echo pin when trigger is pulsed. No good way to fix that with interrupt mode.

Related issue (if applicable): fixes esphome/issues#147

Pull request in esphome with python changes (if applicable): esphome/esphome#
Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#

Checklist:

  • The code change is tested and works locally.
  • The code change follows the standards

If user exposed functionality or configuration variables are added/changed:

@OttoWinter OttoWinter merged commit cf84e09 into dev Mar 24, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-ultrasonic branch March 24, 2019 17:02
OttoWinter added a commit that referenced this pull request Mar 24, 2019
@OttoWinter OttoWinter restored the fix-ultrasonic branch March 24, 2019 17:02
@OttoWinter OttoWinter added this to the 1.12.2 milestone Mar 31, 2019
OttoWinter added a commit that referenced this pull request Mar 31, 2019
* Fix ultrasonic sensor

* Fix default poll interval

* Revert to non-interrupt implementation

* Lint

* Update ultrasonic_sensor.cpp
@esphome esphome locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ultrasonic Distance Sensor issues in 1.12
1 participant