From 9e34144c9b7454ab69215c17d75a8ba2dcdcb929 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 28 Apr 2010 14:33:10 +0000 Subject: Use puts_P() and printf_P() instead of the normal variants where possible in the Host mode Class Driver demos. --- .../JoystickHostWithParser/JoystickHostWithParser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c') diff --git a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c index 32c9b698f..7be38dd85 100644 --- a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c +++ b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.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(&Joystick_HID_Interface, ConfigDescriptorSize, ConfigDescriptorData) != HID_ENUMERROR_NoError) { - printf("Attached Device Not a Valid Joystick.\r\n"); + puts_P(PSTR("Attached Device Not a Valid Joystick.\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(&Joystick_HID_Interface) != 0) { - printf("Error Setting Report Protocol Mode or Not a Valid Joystick.\r\n"); + puts_P(PSTR("Error Setting Report Protocol Mode or Not a Valid Joystick.\r\n")); LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_HostState = HOST_STATE_WaitForDeviceRemoval; break; } - printf("Joystick Enumerated.\r\n"); + puts_P(PSTR("Joystick Enumerated.\r\n")); LEDs_SetAllLEDs(LEDMASK_USB_READY); USB_HostState = HOST_STATE_Configured; break; -- cgit v1.2.3