#NEWLINE# def __init__( self , stick , payload = '' ) : #NEWLINE# #INDENT# payload = pyhsm . util . input_validate_str ( payload , 'payload' , max_len = ( pyhsm . defines . YSM_MAX_PKT_SIZE - 1 ) ) #NEWLINE# packed = ( chr ( len ( payload ) ) + payload ) #NEWLINE# YHSM_Cmd . __init__ ( self , packed , pyhsm . defines . YSM_ECHO , packed )