code: def check_error_cmd(result):
      
      return (result.value >= ReturnCode.ERRCMD) and (result.value < ReturnCode.WARNING)
docs: Checks if any function returns an error from firmware in USB-CANmodul.
  
      :param ReturnCode result: Error code of the function.
      :return: True if a function returned error from firmware, otherwise False.
      :rtype: bool