summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunYi Chen <[email protected]>2023-08-07 15:36:01 +0800
committerMeco Man <[email protected]>2023-08-07 16:49:32 -0400
commitb3f7591811dcd6c273a6e22274daf938a561954b (patch)
tree590e9fdb3fd4818eac30941eed34893f27a5074e
parent4d20416b2f62cbb6c98e88223d6a0d1638b7f1c0 (diff)
avoid warning message of sequence-point
board/ports/touch/gt911/src/gt911.c: warning: operation on '*(config + 8)' may be undefined [-Wsequence-point] config[8] = config[8] ^= (1 << 3); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--bsp/renesas/ra6m3-hmi-board/board/ports/touch/gt911/src/gt911.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/renesas/ra6m3-hmi-board/board/ports/touch/gt911/src/gt911.c b/bsp/renesas/ra6m3-hmi-board/board/ports/touch/gt911/src/gt911.c
index 218480d9fc..471aa5e0a4 100644
--- a/bsp/renesas/ra6m3-hmi-board/board/ports/touch/gt911/src/gt911.c
+++ b/bsp/renesas/ra6m3-hmi-board/board/ports/touch/gt911/src/gt911.c
@@ -375,7 +375,7 @@ static rt_err_t gt911_control(struct rt_touch_device *touch, int cmd, void *arg)
}
case RT_TOUCH_CTRL_SET_X_TO_Y:
{
- config[8] = config[8] ^= (1 << 3);
+ config[8] ^= (1 << 3);
break;
}
case RT_TOUCH_CTRL_SET_MODE: