aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-01-30 21:02:31 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-01-30 21:02:31 +0000
commit43c473530552acabcf5bb1db29555bfb5ea70b79 (patch)
treeb67e5b8295633262ed839e1c74f81a65b4dd59ea /Demos/Device
parentafd828c095f38753e989391eab670b8736e4bd6e (diff)
downloadlufa-43c473530552acabcf5bb1db29555bfb5ea70b79.tar.gz
lufa-43c473530552acabcf5bb1db29555bfb5ea70b79.tar.bz2
lufa-43c473530552acabcf5bb1db29555bfb5ea70b79.zip
Renamed the PRNT_Host_SendString(), CDC_Host_SendString() and CDC_Device_SendString() functions to *_SendData(), and added new versions of the *_SendString() routines that expect a null terminated string instead.
Added new Serial_SendData() function to the Serial driver.
Diffstat (limited to 'Demos/Device')
-rw-r--r--Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c2
-rw-r--r--Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c2
-rw-r--r--Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
index 3b7f26cf6..e2cf4f0b2 100644
--- a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
+++ b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
@@ -156,7 +156,7 @@ void CheckJoystickMovement(void)
{
ActionSent = true;
- CDC_Device_SendString(&VirtualSerial1_CDC_Interface, ReportString, strlen(ReportString));
+ CDC_Device_SendString(&VirtualSerial1_CDC_Interface, ReportString);
}
}
diff --git a/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c b/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
index 68bf5e8db..6dac7b9b0 100644
--- a/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
+++ b/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
@@ -134,7 +134,7 @@ void CheckJoystickMovement(void)
fputs(ReportString, &USBSerialStream);
/* Alternatively, without the stream: */
- // CDC_Device_SendString(&VirtualSerial_CDC_Interface, ReportString, strlen(ReportString));
+ // CDC_Device_SendString(&VirtualSerial_CDC_Interface, ReportString);
}
}
diff --git a/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c b/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
index 616f74f2e..30e9cdff0 100644
--- a/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
+++ b/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
@@ -145,7 +145,7 @@ void CheckJoystickMovement(void)
{
ActionSent = true;
- CDC_Device_SendString(&VirtualSerial_CDC_Interface, ReportString, strlen(ReportString));
+ CDC_Device_SendString(&VirtualSerial_CDC_Interface, ReportString);
}
}