summaryrefslogtreecommitdiff
path: root/lib/anyio.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-02-07 03:49:10 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-02-07 03:49:10 +0000
commitabbdb26478c81987e84e4e826b0e3ff9e2fab57d (patch)
tree1115453f953cea4a5489076309aee2c5b9ef61ea /lib/anyio.c
parentadded anyio example any-led (diff)
update svn:ignore for any-led
anyio also sets stderr git-svn-id: https://svn.spreadspace.org/avr/trunk@174 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'lib/anyio.c')
-rw-r--r--lib/anyio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/anyio.c b/lib/anyio.c
index 38acb2c..59fa52b 100644
--- a/lib/anyio.c
+++ b/lib/anyio.c
@@ -97,12 +97,12 @@ int16_t anyio_bytes_received(void)
void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo)
{
if(CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR)
- stdin = stdout = &usb_stream;
+ stdin = stdout = stderr = &usb_stream;
else
- stdin = stdout = &serial_stream;
+ stdin = stdout = stderr = &serial_stream;
}
void EVENT_USB_Device_Disconnect(void)
{
- stdin = stdout = &serial_stream;
+ stdin = stdout = stderr = &serial_stream;
}