small fix

ugfx_release_2.6
Joel Bodenmann 2014-10-28 10:06:24 +01:00
parent 0129ba3dfe
commit 804fcc7c6a
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ static void read_xyz(GMouse* m, GMouseReading* pdr)
#if GMOUSE_STMPE811_GPIO_IRQPIN #if GMOUSE_STMPE811_GPIO_IRQPIN
// Check if the touch controller IRQ pin has gone off // Check if the touch controller IRQ pin has gone off
clearfifo = false; clearfifo = FALSE;
if(getpin_irq(m)) { if(getpin_irq(m)) {
write_reg(m, STMPE811_REG_INT_STA, 0xFF); // clear all interrupts write_reg(m, STMPE811_REG_INT_STA, 0xFF); // clear all interrupts
if (read_byte(m, STMPE811_REG_TSC_CTRL) & 0x80) // set the new touched status if (read_byte(m, STMPE811_REG_TSC_CTRL) & 0x80) // set the new touched status
@ -102,7 +102,7 @@ static void read_xyz(GMouse* m, GMouseReading* pdr)
#if !GMOUSE_STMPE811_SLOW_CPU #if !GMOUSE_STMPE811_SLOW_CPU
if (!clearfifo && (read_byte(m, STMPE811_REG_FIFO_STA) & 0xD0)) if (!clearfifo && (read_byte(m, STMPE811_REG_FIFO_STA) & 0xD0))
#endif #endif
clearfifo = true; clearfifo = TRUE;
do { do {
/* Get the X, Y, Z values */ /* Get the X, Y, Z values */