import binascii


def ReadSerialByte(ser, Log):
    """ Reads one byte of data from serial port. """

    toBeRead = ser.inWaiting()
    
    if toBeRead > 0: 
        data = ser.read(1)
        
        Log.Log("Read data: " + data + ", " + binascii.hexlify(data))
        
        return data
    else:
        #Log.Log("No Data To Be Read") 
        return ""