I have no idea and don’t think this is FreeRTOS related, but if add an if statement that will only send _ID to the COM port and nothing else then I would not expect it to work.
You would have to provide a lot more code for somebody to be able to help, like what _ID actually is, but to be honest I don’t think this is the most appropriate place for the question.