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:
parent
f857b7116b
commit
caead7bb75
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user