#NEWLINE# def setSerialNumber( self , serial ) : #NEWLINE# #INDENT# if ( len ( serial ) != 4 ) : #NEWLINE# #INDENT# raise MessageError ( 'Could not set serial number (expected 4 bytes).' ) #NEWLINE# #UNINDENT# self . setPayload ( serial )