Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

modpycom.c/pulses_get(): prevent lock-up at long pulses #110

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esp32/mods/modpycom.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ STATIC mp_obj_t mod_pycom_pulses_get (mp_obj_t gpio, mp_obj_t timeout) {
rmt_rx.rmt_mode = RMT_MODE_RX;
rmt_rx.rx_config.filter_en = true;
rmt_rx.rx_config.filter_ticks_thresh = 100;
rmt_rx.rx_config.idle_threshold = 20000;
rmt_rx.rx_config.idle_threshold = 0xffff;
rmt_config(&rmt_rx);

RingbufHandle_t rb = NULL;
Expand Down