More fixes for incorrect return types/values.
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 9 Mar 2014 04:38:27 +0000 (15:38 +1100)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 9 Mar 2014 04:38:27 +0000 (15:38 +1100)
LUFA/Drivers/USB/Class/Host/HIDClassHost.c
LUFA/Platform/XMEGA/ClockManagement.h

index e2b83ea..b43435d 100644 (file)
@@ -238,7 +238,7 @@ uint8_t HID_Host_SendReportByID(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo
 {
 #if !defined(HID_HOST_BOOT_PROTOCOL_ONLY)
        if ((USB_HostState != HOST_STATE_Configured) || !(HIDInterfaceInfo->State.IsActive))
-         return false;
+         return PIPE_RWSTREAM_NoError;
 
        if (HIDInterfaceInfo->State.DeviceUsesOUTPipe && (ReportType == HID_REPORT_ITEM_Out))
        {
index ed48d6e..a39911a 100644 (file)
                         *
                         *  \return Boolean \c true if the internal oscillator was successfully started, \c false if invalid parameters specified.
                         */
-                       static inline uint8_t XMEGACLK_StartInternalOscillator(const uint8_t Source) ATTR_ALWAYS_INLINE;
-                       static inline uint8_t XMEGACLK_StartInternalOscillator(const uint8_t Source)
+                       static inline bool XMEGACLK_StartInternalOscillator(const uint8_t Source) ATTR_ALWAYS_INLINE;
+                       static inline bool XMEGACLK_StartInternalOscillator(const uint8_t Source)
                        {
                                switch (Source)
                                {