#NEWLINE# def to_feature_reports( self , debug = False ) : #NEWLINE# #INDENT# '\n        Return the frame as an array of 8-byte parts, ready to be sent to a YubiKey.\n        ' #NEWLINE# rest = self . to_string ( ) #NEWLINE# seq = 0 #NEWLINE# out = [ ] #NEWLINE# while rest : #NEWLINE# #INDENT# ( this , rest ) = ( rest [ : 7 ] , rest [ 7 : ] ) #NEWLINE# if ( ( seq > 0 ) and rest ) : #NEWLINE# #INDENT# if ( this != b'\x00\x00\x00\x00\x00\x00\x00' ) : #NEWLINE# #INDENT# this += yubico_util . chr_byte ( ( yubikey_defs . SLOT_WRITE_FLAG + seq ) ) #NEWLINE# out . append ( self . _debug_string ( debug , this ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# this += yubico_util . chr_byte ( ( yubikey_defs . SLOT_WRITE_FLAG + seq ) ) #NEWLINE# out . append ( self . _debug_string ( debug , this ) ) #NEWLINE# #UNINDENT# seq += 1 #NEWLINE# #UNINDENT# return out