aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-10-28 10:06:24 +0100
committerJoel Bodenmann <joel@unormal.org>2014-10-28 10:06:24 +0100
commit804fcc7c6ab8f2e0932c65a0fc7a967337f431d6 (patch)
tree45b297de3c7abe510b4346394b2fcb95d1f49b55 /drivers/ginput
parent0129ba3dfe6b24e925741f0a018c4ef09cdc6c9d (diff)
downloaduGFX-804fcc7c6ab8f2e0932c65a0fc7a967337f431d6.tar.gz
uGFX-804fcc7c6ab8f2e0932c65a0fc7a967337f431d6.tar.bz2
uGFX-804fcc7c6ab8f2e0932c65a0fc7a967337f431d6.zip
small fix
Diffstat (limited to 'drivers/ginput')
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
index 6c07ef12..71c3c5d7 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
@@ -73,7 +73,7 @@ static void read_xyz(GMouse* m, GMouseReading* pdr)
#if GMOUSE_STMPE811_GPIO_IRQPIN
// Check if the touch controller IRQ pin has gone off
- clearfifo = false;
+ clearfifo = FALSE;
if(getpin_irq(m)) {
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
@@ -102,7 +102,7 @@ static void read_xyz(GMouse* m, GMouseReading* pdr)
#if !GMOUSE_STMPE811_SLOW_CPU
if (!clearfifo && (read_byte(m, STMPE811_REG_FIFO_STA) & 0xD0))
#endif
- clearfifo = true;
+ clearfifo = TRUE;
do {
/* Get the X, Y, Z values */