def flush_serial(ser):
    """
    Clear any pending bytes from the ``serial`` buffer. 
    
    :param ser: The ``serial`` object to use. 
        
    :returns: ``None``.
    
    """
    while ser.inWaiting() > 0:
        ser.read()
