From 065c3fb834f696b068922fff4a0e3a195bde5581 Mon Sep 17 00:00:00 2001 From: "chaos.proton@gmail.com" Date: Tue, 8 Nov 2011 09:19:41 +0000 Subject: [PATCH] fix typo in last commit... git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1790 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/stm32f10x/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/stm32f10x/touch.c b/bsp/stm32f10x/touch.c index b672ccdb4..ccb3c3dad 100644 --- a/bsp/stm32f10x/touch.c +++ b/bsp/stm32f10x/touch.c @@ -197,7 +197,7 @@ void touch_timeout(void* parameter) } touch_previous; /* touch time is too short and we lost the position already. */ - if ((!touch_down) && GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_0) != 0) + if ((!touched_down) && GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_1) != 0) return; if (GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_1) != 0)