def reverseByteOrder(self, data):
        # Reverses the byte order of an int (16-bit) or long (32-bit) value
        # Courtesy Vishal Sapre
        dstr = hex(data)[2:].replace('L','')
        byteCount = len(dstr[::2])
        val = 0
        for i, n in enumerate(range(byteCount)):
            d = data & 0xFF
            val |= (d << (8 * (byteCount - 1 - i)))
            data >>= 8
        return val
dataset/ETHPy150Open cTn-dev/PyComms/PyComms/pycomms.py/PyComms.reverseByteOrder/swapped operands of `-`