Add an else block and keep the state to idle. In the beginning of the function assign the state to BP_DRIVER_CLEAR_CMD_STATE and remove line 194, 202 and 208.
Add an else block and keep the state to idle.
In the beginning of the function assign the state to BP_DRIVER_CLEAR_CMD_STATE and remove line 194, 202 and 208.