diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-04-28 14:33:10 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-04-28 14:33:10 +0000 |
commit | 9e34144c9b7454ab69215c17d75a8ba2dcdcb929 (patch) | |
tree | a8bf00bba0faa5aa75b4d6d721eec40cc8a1ad4c /Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c | |
parent | 0063f721173b38155648a4267703825fb136fc3e (diff) | |
download | lufa-9e34144c9b7454ab69215c17d75a8ba2dcdcb929.tar.gz lufa-9e34144c9b7454ab69215c17d75a8ba2dcdcb929.tar.bz2 lufa-9e34144c9b7454ab69215c17d75a8ba2dcdcb929.zip |
Use puts_P() and printf_P() instead of the normal variants where possible in the Host mode Class Driver demos.
Diffstat (limited to 'Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c')
-rw-r--r-- | Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c index 296f86bfb..40a74f511 100644 --- a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c +++ b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c @@ -85,7 +85,7 @@ int main(void) if (USB_Host_GetDeviceConfigDescriptor(1, &ConfigDescriptorSize, ConfigDescriptorData,
sizeof(ConfigDescriptorData)) != HOST_GETCONFIG_Successful)
{
- printf("Error Retrieving Configuration Descriptor.\r\n");
+ puts_P(PSTR("Error Retrieving Configuration Descriptor.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
@@ -94,7 +94,7 @@ int main(void) if (HID_Host_ConfigurePipes(&Mouse_HID_Interface,
ConfigDescriptorSize, ConfigDescriptorData) != HID_ENUMERROR_NoError)
{
- printf("Attached Device Not a Valid Mouse.\r\n");
+ puts_P(PSTR("Attached Device Not a Valid Mouse.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
@@ -102,7 +102,7 @@ int main(void) if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful)
{
- printf("Error Setting Device Configuration.\r\n");
+ puts_P(PSTR("Error Setting Device Configuration.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
@@ -110,13 +110,13 @@ int main(void) if (HID_Host_SetReportProtocol(&Mouse_HID_Interface) != 0)
{
- printf("Error Setting Report Protocol Mode or Not a Valid Mouse.\r\n");
+ puts_P(PSTR("Error Setting Report Protocol Mode or Not a Valid Mouse.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
}
- printf("Mouse Enumerated.\r\n");
+ puts_P(PSTR("Mouse Enumerated.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_READY);
USB_HostState = HOST_STATE_Configured;
break;
|