esp32/machine_touchpad: Use HW timer for FSM to enable wake-on-touch.

pull/1/head
Tom Manning 2019-05-15 05:50:53 -04:00 committed by Damien George
parent ab26553759
commit 887a6712c2
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ STATIC mp_obj_t mtp_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
static int initialized = 0;
if (!initialized) {
touch_pad_init();
touch_pad_set_fsm_mode(TOUCH_FSM_MODE_TIMER);
initialized = 1;
}
esp_err_t err = touch_pad_config(self->touchpad_id, 0);