X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/30f6d2bfd82995e0fa346b3b4eb33861f6a0fde3..afd828c095f38753e989391eab670b8736e4bd6e:/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c?ds=inline diff --git a/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c b/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c index 3d5fd343a..bd793ca50 100644 --- a/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c +++ b/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c @@ -66,9 +66,12 @@ void SetupHardware(void) clock_prescale_set(clock_div_1); /* Hardware Initialization */ - SerialStream_Init(9600, false); + Serial_Init(9600, false); LEDs_Init(); USB_Init(); + + /* Create a stdio stream for the serial port for stdin and stdout */ + Serial_CreateStream(NULL); } /** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and