aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ginput/touch/STMPE811/ginput_lld_mouse.c')
-rw-r--r--drivers/ginput/touch/STMPE811/ginput_lld_mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
index 782c5c06..696795cc 100644
--- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
+++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
@@ -130,7 +130,7 @@ void ginput_lld_mouse_get_reading(MouseReading *pt)
#else
// Check if the touch controller IRQ pin has gone off
clearfifo = false;
- if(getpin_pressed()) { // please rename this to getpin_irq
+ if(getpin_irq()) { // please rename this to getpin_irq
write_reg(STMPE811_REG_INT_STA, 1, 0xFF); // clear all interrupts
touched = (uint8_t)read_reg(STMPE811_REG_TSC_CTRL, 1) & 0x80; // set the new touched status
clearfifo = true; // only take the last FIFO reading