#NEWLINE# def rx( self , data ) : #NEWLINE# #INDENT# 'show received data as hex dump' #NEWLINE# if self . color : #NEWLINE# #INDENT# self . output . write ( offset . rx_color ) #NEWLINE# #UNINDENT# if data : #NEWLINE# #INDENT# for ( offset , row ) in hexdump ( data ) : #NEWLINE# #INDENT# self . write_line ( ( time . time ( ) - self . start_time ) , 'RX' , '{:04X}  ' . format ( offset ) , row ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . write_line ( ( time . time ( ) - self . start_time ) , 'RX' , '<empty>' )