From 1971a415e5cfb7f9444745124681ce7f0248e704 Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Sat, 17 Mar 2012 10:21:40 +0000
Subject: [PATCH] Fixed compile error if LEDs_Disable() is called and
 BOARD=NONE is set (thanks to Sam Lin).

---
 LUFA/DoxygenPages/ChangeLog.txt | 1 +
 LUFA/Drivers/Board/LEDs.h       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt
index d4b781cce..2f4c363bc 100644
--- a/LUFA/DoxygenPages/ChangeLog.txt
+++ b/LUFA/DoxygenPages/ChangeLog.txt
@@ -27,6 +27,7 @@
   *     the host state machine
   *   - Fixed incorrect call to the user callback CALLBACK_Audio_Device_GetSetInterfaceProperty() in the Audio Class device driver (thanks to Tiit Ratsep)
   *   - Fixed compile error for the UC3 architecture when INTERRUPT_CONTROL_ENDPOINT is specified (thanks to Andrus Aaslaid)
+  *   - Fixed compile error if LEDs_Disable() is called and BOARD=NONE is set (thanks to Sam Lin)
   *  - Library Applications:
   *   - None
   *
diff --git a/LUFA/Drivers/Board/LEDs.h b/LUFA/Drivers/Board/LEDs.h
index 3fa54b099..46589c28d 100644
--- a/LUFA/Drivers/Board/LEDs.h
+++ b/LUFA/Drivers/Board/LEDs.h
@@ -109,6 +109,7 @@
 
 		#if (BOARD == BOARD_NONE)
 			static inline void LEDs_Init(void) {};
+			static inline void LEDs_Disable(void) {};
 			static inline void LEDs_TurnOnLEDs(const uint_reg_t LEDMask) {};
 			static inline void LEDs_TurnOffLEDs(const uint_reg_t LEDMask) {};
 			static inline void LEDs_SetAllLEDs(const uint_reg_t LEDMask) {};
-- 
GitLab