1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

drivers/stmpe811: always clear interrupt state

This commit is contained in:
Benjamin Valentin 2020-07-16 10:25:30 +02:00 committed by Alexandre Abadie
parent f857b7116b
commit caead7bb75
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -262,8 +262,9 @@ int stmpe811_read_touch_state(const stmpe811_t *dev, stmpe811_touch_state_t *sta
return -STMPE811_ERR_I2C; return -STMPE811_ERR_I2C;
} }
_clear_interrupt_status(dev);
if ((val & STMPE811_TSC_CTRL_STA)) { if ((val & STMPE811_TSC_CTRL_STA)) {
_clear_interrupt_status(dev);
*state = STMPE811_TOUCH_STATE_PRESSED; *state = STMPE811_TOUCH_STATE_PRESSED;
} }
else { else {