diff --git a/Marlin/Makefile b/Marlin/Makefile
index 1e847a37b8e4710709d79634fb8c51be20dc5c4e..fdff2194f938f267a4eca821ac56dddb6fc9db04 100644
--- a/Marlin/Makefile
+++ b/Marlin/Makefile
@@ -153,7 +153,9 @@ sym: applet/$(TARGET).sym
 
 # Program the device.  
 upload: applet/$(TARGET).hex
+	stty hup < $(PORT); true
 	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
+	stty -hup < $(PORT); true
 
 
 	# Display size of file.