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);
                ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
KunYi Chen 2023-08-07 15:36:01 +08:00 committed by Meco Man
parent 4d20416b2f
commit b3f7591811
1 changed files with 1 additions and 1 deletions

View File

@ -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: