From 7602566a05616e55a943422c783e072b49cadb1d Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Fri, 5 Feb 2010 07:27:01 +0000
Subject: [PATCH] Fixed SerialStream driver not setting stdin to the created
 serial stream.

---
 LUFA/Drivers/Peripheral/SerialStream.h | 1 +
 LUFA/ManPages/ChangeLog.txt            | 1 +
 2 files changed, 2 insertions(+)

diff --git a/LUFA/Drivers/Peripheral/SerialStream.h b/LUFA/Drivers/Peripheral/SerialStream.h
index 80fa681ac..e03ce4128 100644
--- a/LUFA/Drivers/Peripheral/SerialStream.h
+++ b/LUFA/Drivers/Peripheral/SerialStream.h
@@ -89,6 +89,7 @@
 				Serial_Init(BaudRate, DoubleSpeed);
 				
 				stdout = &USARTStream;
+				stdin  = &USARTStream;
 			}
 			
 			/** Turns off the serial stream (and regular USART driver), disabling and returning used hardware to
diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt
index 5fd1b2ba4..aaeaebd86 100644
--- a/LUFA/ManPages/ChangeLog.txt
+++ b/LUFA/ManPages/ChangeLog.txt
@@ -54,6 +54,7 @@
   *  - Fixed EEPROM and FLASH ISP programming in the AVRISP project
   *  - Fixed incorrect values of USB_CONFIG_ATTR_SELFPOWERED and USB_CONFIG_ATTR_REMOTEWAKEUP tokens (thanks to Claus Christensen)
   *  - Fixed SerialStream driver blocking while waiting for characters to be received instead of returning EOF
+  *  - Fixed SerialStream driver not setting stdin to the created serial stream
   *
   *  \section Sec_ChangeLog091223 Version 091223
   *
-- 
GitLab