code: def to_frame(self, slot=1):
          
          data = self.to_string()
          payload = data.ljust(64, yubico_util.chr_byte(0x0))
          if slot is 1:
              if self._update_config:
                  command = SLOT.UPDATE1
              else:
                  command = SLOT.CONFIG
          elif slot is 2:
              if self._update_config:
                  command = SLOT.UPDATE2
              else:
                  command = SLOT.CONFIG2
          else:
              assert()
  
          if self._swap_slots:
              command = SLOT.SWAP
  
          if self._zap:
              payload = b''
  
          return yubikey_frame.YubiKeyFrame(command=command, payload=payload)
docs: Return the current configuration as a YubiKeyFrame object.