| 
					
				 | 
			
			
				@@ -38,8 +38,11 @@ class ShellmattaSerial(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if data.endswith(str.encode(self.prompt)): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     # return received string without echo and prompt 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    data = data[:-len(str.encode(self.prompt))] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if data.startswith(send_data): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        data = data[len(send_data):-len(str.encode(self.prompt))] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        data = data[len(send_data):] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             # todo implement proper retries / sequence checking 
			 |