Browse Source

modify code style

宋超 4 years ago
parent
commit
2060504a88
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bsp/imx6ull-artpi-smart/drivers/drv_touch.c

+ 2 - 1
bsp/imx6ull-artpi-smart/drivers/drv_touch.c

@@ -151,7 +151,6 @@ static struct rt_touch_data *read_data;
 
 static void gt911_touch_up(void *buf, int8_t id)
 {
-    long test;
     read_data = (struct rt_touch_data *)buf;
 
     if(s_tp_dowm[id] == 1)
@@ -269,7 +268,9 @@ static rt_size_t gt911_read_point(struct rt_touch_device *touch, void *buf, rt_s
                 read_id = read_buf[j * 8] & 0x0F;
 
                 if (pre_id[read_index] == read_id)                   /* this id is not free */
+                {
                     break;
+                }
 
                 if (j >= touch_num - 1)
                 {