summaryrefslogtreecommitdiffstats
path: root/keyboards/crkbd/config.h
diff options
context:
space:
mode:
authormarksard <38324387+marksard@users.noreply.github.com>2018-09-04 01:34:16 +0200
committerDrashna Jaelre <drashna@live.com>2018-09-04 01:34:16 +0200
commit35efcc9f398a1a2493b482dd1bd7c859f93ef450 (patch)
tree004b44e13067b8793ad9523340ce0539977bf8b9 /keyboards/crkbd/config.h
parentfa1ee47cf2293d06693b86e8dd188d9fbc9338c4 (diff)
downloadqmk_firmware-35efcc9f398a1a2493b482dd1bd7c859f93ef450.tar.gz
qmk_firmware-35efcc9f398a1a2493b482dd1bd7c859f93ef450.tar.xz
Keyboard: Improvement of crkbd communication functions (based on helix-keyboard) (#3798)
* improvement of crkbd communication functions (based on helix-keyboard) * Removed unnecessary code. * Changed read restriction from #define to #pragma once. * Changed from sizeof to defined size. * moved lib folder to crkbdroot. removed warning of ws2812.d
Diffstat (limited to 'keyboards/crkbd/config.h')
-rw-r--r--keyboards/crkbd/config.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/keyboards/crkbd/config.h b/keyboards/crkbd/config.h
index c910d8f24..64fee7545 100644
--- a/keyboards/crkbd/config.h
+++ b/keyboards/crkbd/config.h
@@ -16,9 +16,16 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
#include "config_common.h"
+#include <serial_config.h>
-#endif
+#ifdef USE_Link_Time_Optimization
+ // LTO has issues with macros (action_get_macro) and "functions" (fn_actions),
+ // so just disable them
+ #define NO_ACTION_MACRO
+ #define NO_ACTION_FUNCTION
+
+ #define DISABLE_LEADER
+#endif // USE_Link_Time_Optimization