def _validate_checksum(self, buffer):
self._log.debug("<STR_LIT>")<EOL>if len(buffer) == <NUM_LIT:0>:<EOL><INDENT>self._log.debug("<STR_LIT>")<EOL>if self._conn.isOpen():<EOL><INDENT>self._log.debug('<STR_LIT>')<EOL>self._conn.close()<EOL><DEDENT>return False<EOL><DEDENT>p0 = hex2int(buffer[<NUM_LIT:0>])<EOL>p1 = hex2int(buffer[<NUM_LIT:1>])<EOL>checksum = sum([hex2int(c) for c in buffer[:<NUM_LIT>]]) & <NUM_LIT><EOL>p35 = hex2int(buffer[<NUM_LIT>])<EOL>if p0 != <NUM_LIT> or p1 != <NUM_LIT> or p35 != checksum:<EOL><INDENT>self._log.debug("<STR_LIT>")<EOL>return False<EOL><DEDENT>return True<EOL>
Validate the buffer response against the checksum.

        When reading the serial interface, data will come back in a raw format
        with an included checksum process.

        :returns: bool