drivers: fix issue reported by coverity

This commit is contained in:
morris
2023-06-02 10:30:38 +08:00
parent 4a05274dc4
commit 839d1a831d
4 changed files with 9 additions and 184 deletions

View File

@@ -324,7 +324,7 @@ static void te_intr_cb(void *arg)
TE_UNUSED(arg);
static int scan_done_cnt = 0;
int task_awoken = pdFALSE;
te_intr_msg_t te_intr_msg;
te_intr_msg_t te_intr_msg = {};
/*< Figure out which touch sensor channel is triggered and the trigger type */
uint32_t intr_mask = touch_pad_read_intr_status_mask();
te_intr_msg.channel_num = touch_pad_get_current_meas_channel();