Merge pull request #4666 from DavePutz/issue_4660
Reset buffer index in PulseIn clear
This commit is contained in:
commit
92919c25c2
1 changed files with 1 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ void common_hal_pulseio_pulsein_resume(pulseio_pulsein_obj_t *self,
|
||||||
void common_hal_pulseio_pulsein_clear(pulseio_pulsein_obj_t *self) {
|
void common_hal_pulseio_pulsein_clear(pulseio_pulsein_obj_t *self) {
|
||||||
self->start = 0;
|
self->start = 0;
|
||||||
self->len = 0;
|
self->len = 0;
|
||||||
|
buf_index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t common_hal_pulseio_pulsein_popleft(pulseio_pulsein_obj_t *self) {
|
uint16_t common_hal_pulseio_pulsein_popleft(pulseio_pulsein_obj_t *self) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue