diff --git a/BTD.h b/BTD.h index 567e9fab..123c2f94 100755 --- a/BTD.h +++ b/BTD.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2012 Kristian Lauszus, TKJ Electronics. All rights reserved. + /* Copyright (C) 2012 Kristian Lauszus, TKJ Electronics. All rights reserved. This software may be distributed and modified under the terms of the GNU General Public License version 2 (GPL2) as published by the Free Software diff --git a/PS4BT.h b/PS4BT.h index ff3168a3..871fb139 100644 --- a/PS4BT.h +++ b/PS4BT.h @@ -128,4 +128,4 @@ private: void (*pFuncOnInit)(void); // Pointer to function called in onInit() }; -#endif \ No newline at end of file +#endif diff --git a/PS4Parser.cpp b/PS4Parser.cpp index ca992866..106d04ed 100644 --- a/PS4Parser.cpp +++ b/PS4Parser.cpp @@ -106,4 +106,4 @@ void PS4Parser::Parse(uint8_t len, uint8_t *buf) { if (ps4Output.reportChanged) sendOutputReport(&ps4Output); // Send output report -} \ No newline at end of file +} diff --git a/PS4Parser.h b/PS4Parser.h index 8b328342..51f08063 100644 --- a/PS4Parser.h +++ b/PS4Parser.h @@ -404,4 +404,4 @@ private: PS4Output ps4Output; uint8_t oldDpad; }; -#endif \ No newline at end of file +#endif diff --git a/PS4USB.h b/PS4USB.h index 8a9e12fa..b43079a6 100644 --- a/PS4USB.h +++ b/PS4USB.h @@ -127,4 +127,4 @@ protected: private: void (*pFuncOnInit)(void); // Pointer to function called in onInit() }; -#endif \ No newline at end of file +#endif diff --git a/PSBuzz.cpp b/PSBuzz.cpp index 56ae618d..cc1cc464 100644 --- a/PSBuzz.cpp +++ b/PSBuzz.cpp @@ -79,4 +79,4 @@ void PSBuzz::setLedRaw(bool value, uint8_t controller) { void PSBuzz::PSBuzz_Command(uint8_t *data, uint16_t nbytes) { // bmRequest = Host to device (0x00) | Class (0x20) | Interface (0x01) = 0x21, bRequest = Set Report (0x09), Report ID (0x00), Report Type (Output 0x02), interface (0x00), datalength, datalength, data) pUsb->ctrlReq(bAddress, epInfo[0].epAddr, bmREQ_HIDOUT, HID_REQUEST_SET_REPORT, 0x00, 0x02, 0x00, nbytes, nbytes, data, NULL); -}; \ No newline at end of file +}; diff --git a/PSBuzz.h b/PSBuzz.h index 5043a086..8880d9e5 100644 --- a/PSBuzz.h +++ b/PSBuzz.h @@ -182,4 +182,4 @@ private: PSBUZZButtons psbuzzButtons, oldButtonState, buttonClickState; bool ledState[4]; }; -#endif \ No newline at end of file +#endif diff --git a/README.md b/README.md index edb440a2..f8675ef7 100644 --- a/README.md +++ b/README.md @@ -298,4 +298,4 @@ See the "Interface modifications" section in the [hardware manual](https://www.c > When I plug my device into the USB connector nothing happens? * Try to connect a external power supply to the Arduino - this solves the problem in most cases. -* You can also use a powered hub between the device and the USB Host Shield. You should then include the USB hub library: ```#include ``` and create the instance like so: ```USBHub Hub1(&Usb);```. \ No newline at end of file +* You can also use a powered hub between the device and the USB Host Shield. You should then include the USB hub library: ```#include ``` and create the instance like so: ```USBHub Hub1(&Usb);```. diff --git a/WiiCameraReadme.md b/WiiCameraReadme.md index 2309b4f9..8577d73f 100644 --- a/WiiCameraReadme.md +++ b/WiiCameraReadme.md @@ -10,4 +10,4 @@ This library implements the following settings: * Data Format: Extended mode (0x03). Full mode is not working yet. The output reports 0x3e and 0x3f need tampering with * In this mode the camera outputs x and y coordinates and a size dimension for the 4 brightest points. -Again, read through to get an understanding of the camera and its settings. \ No newline at end of file +Again, read through to get an understanding of the camera and its settings. diff --git a/adk.cpp b/adk.cpp index 751d3b8c..c79263f0 100644 --- a/adk.cpp +++ b/adk.cpp @@ -356,16 +356,16 @@ uint8_t ADK::SndData(uint16_t nbytes, uint8_t *dataptr) { void ADK::PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr) { Notify(PSTR("Endpoint descriptor:"), 0x80); Notify(PSTR("\r\nLength:\t\t"), 0x80); - PrintHex (ep_ptr->bLength, 0x80); + D_PrintHex (ep_ptr->bLength, 0x80); Notify(PSTR("\r\nType:\t\t"), 0x80); - PrintHex (ep_ptr->bDescriptorType, 0x80); + D_PrintHex (ep_ptr->bDescriptorType, 0x80); Notify(PSTR("\r\nAddress:\t"), 0x80); - PrintHex (ep_ptr->bEndpointAddress, 0x80); + D_PrintHex (ep_ptr->bEndpointAddress, 0x80); Notify(PSTR("\r\nAttributes:\t"), 0x80); - PrintHex (ep_ptr->bmAttributes, 0x80); + D_PrintHex (ep_ptr->bmAttributes, 0x80); Notify(PSTR("\r\nMaxPktSize:\t"), 0x80); - PrintHex (ep_ptr->wMaxPacketSize, 0x80); + D_PrintHex (ep_ptr->wMaxPacketSize, 0x80); Notify(PSTR("\r\nPoll Intrv:\t"), 0x80); - PrintHex (ep_ptr->bInterval, 0x80); + D_PrintHex (ep_ptr->bInterval, 0x80); Notify(PSTR("\r\n"), 0x80); } diff --git a/confdescparser.h b/confdescparser.h index 58c1f4fb..f91393a9 100644 --- a/confdescparser.h +++ b/confdescparser.h @@ -197,12 +197,6 @@ void ConfigDescParser::PrintHidDescrip Notify(PSTR("\r\nbNumDescriptors:\t"), 0x80); PrintHex (pDesc->bNumDescriptors, 0x80); - //Notify(PSTR("\r\nbDescrType:\t\t")); - //PrintHex(pDesc->bDescrType); - // - //Notify(PSTR("\r\nwDescriptorLength:\t")); - //PrintHex(pDesc->wDescriptorLength); - for(uint8_t i = 0; i < pDesc->bNumDescriptors; i++) { HID_CLASS_DESCRIPTOR_LEN_AND_TYPE *pLT = (HID_CLASS_DESCRIPTOR_LEN_AND_TYPE*)&(pDesc->bDescrType); diff --git a/keywords.txt b/keywords.txt index c7bd007c..178d52d8 100644 --- a/keywords.txt +++ b/keywords.txt @@ -358,4 +358,4 @@ RED LITERAL1 YELLOW LITERAL1 GREEN LITERAL1 ORANGE LITERAL1 -BLUE LITERAL1 \ No newline at end of file +BLUE LITERAL1