aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-02-28 16:26:37 +1000
committerinmarket <andrewh@inmarket.com.au>2015-02-28 16:26:37 +1000
commit8f779effe1ba39ed6e5ba8925bb9c71f5401c57c (patch)
treee7f3985e775e7462f7fd659d4417fafa200a3da0 /drivers/ginput
parentfe980847d4d85cb7a4cd1f93de9b441337c20404 (diff)
downloaduGFX-8f779effe1ba39ed6e5ba8925bb9c71f5401c57c.tar.gz
uGFX-8f779effe1ba39ed6e5ba8925bb9c71f5401c57c.tar.bz2
uGFX-8f779effe1ba39ed6e5ba8925bb9c71f5401c57c.zip
Fix compiler warnings
Diffstat (limited to 'drivers/ginput')
-rw-r--r--drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c1
-rw-r--r--drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c1
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c b/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c
index 0359ecf3..ab331f8f 100644
--- a/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c
+++ b/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c
@@ -76,6 +76,7 @@ static bool_t MouseXYZ(GMouse* m, GMouseReading* pdr)
#if GMOUSE_FT5x06_SELF_CALIBRATE
#if GDISP_NEED_CONTROL
switch(gdispGGetOrientation(m->display)) {
+ default:
case GDISP_ROTATE_0:
case GDISP_ROTATE_180:
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));
diff --git a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c
index 6458c87d..acfa202e 100644
--- a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c
+++ b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c
@@ -210,6 +210,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
#if GMOUSE_STMPE610_SELF_CALIBRATE
#if GDISP_NEED_CONTROL
switch(gdispGGetOrientation(m->display)) {
+ default:
case GDISP_ROTATE_0:
case GDISP_ROTATE_180:
default:
diff --git a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
index fe1a0b87..444888af 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
@@ -210,6 +210,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
#if GMOUSE_STMPE811_SELF_CALIBRATE
#if GDISP_NEED_CONTROL
switch(gdispGGetOrientation(m->display)) {
+ default:
case GDISP_ROTATE_0:
case GDISP_ROTATE_180:
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));