original_docstring:  Attempts to determine the revision of the connected hardware.
  
          Returns the relevant hardware's revision number, as (major, minor).
          
docstring: Attempts to determine the revision of the connected hardware.
  Returns the relevant hardware's revision number, as (major, minor).
docstring_tokens: Attempts to determine the revision of the connected hardware . Returns the relevant hardware ' s revision number as ( major minor ) .
code: def detect_connected_version(self):
          """ Attempts to determine the revision of the connected hardware.
  
          Returns the relevant hardware's revision number, as (major, minor).
          """
  
          # Extract the major and minor from the device's USB descriptor.
          minor = self.device.bcdDevice & 0xFF
          major = self.device.bcdDevice >> 8
  
          return major, minor
code_tokens: def detect_connected_version ( self ) : minor = self . device . bcdDevice & 0xFF major = self . device . bcdDevice >> 8 return major , minor
short_docstring: Attempts to determine the revision of the connected hardware.
short_docstring_tokens: Attempts to determine the revision of the connected hardware .
comment: """ Attempts to determine the revision of the connected hardware.
  
          Returns the relevant hardware's revision number, as (major, minor).
          """$SEP$# Extract the major and minor from the device's USB descriptor.