Because this will be a common file. I don't think it will be worth to go through that exercise. If this was unique with DG, I would agree with the comment.
This code is for test to be able to enable or disable CanInterface , MessageDispatcher console out to be able to debug without rebuild even on target. And I mentioned at top of the code that it's a Test code for debuging
uiDidCommunicate is latched. It is useful to know that UI came up and was communicating at some time. uiIsCommunicating is cleared when the getter function is called so the UI has to keep communicating to set the flag again and again (like a comm watchdog).