<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setCompactProtocol(self):
 """ Set the compact protocol. """

        self._compact = True
        self._serial.write(bytes(self._BAUD_DETECT))
        self._log and self._log.debug("Compact protocol has been set.")