From 65ace3e7fdd99f5d7af2868d7a8a7ac4a3735246 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 28 Nov 2016 08:37:02 +0100 Subject: [PATCH] MouseKeys: include KeyboardioFirmware.h Instead of including `key_defs.h`, include `KeyboardioFirmware.h` in `Keyboardio-MouseKeys.h`, so that the dependency is clear. This is needed for the arduino-builder to arrange the linking order properly when using KeyboardioFirmware, KeyboardioFirmware-MouseKeys and other libraries combined. It does not affect the combination of just the two, but if there's a third, that happens to include `KeyboardioFirmware.h` too, this dependency is required for correct linking. Signed-off-by: Gergely Nagy --- libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h | 1 + libraries/Keyboardio-MouseKeys/src/MouseKeyDefs.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h b/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h index a9846980..389ec2da 100644 --- a/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h +++ b/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h @@ -1,5 +1,6 @@ #pragma once +#include "KeyboardioFirmware.h" #include "MouseKeyDefs.h" class MouseKeys_ { diff --git a/libraries/Keyboardio-MouseKeys/src/MouseKeyDefs.h b/libraries/Keyboardio-MouseKeys/src/MouseKeyDefs.h index 04c2ef58..e9c4b5dd 100644 --- a/libraries/Keyboardio-MouseKeys/src/MouseKeyDefs.h +++ b/libraries/Keyboardio-MouseKeys/src/MouseKeyDefs.h @@ -1,7 +1,5 @@ #pragma once -#include "key_defs.h" - #define IS_MOUSE_KEY B00010000 // Synthetic, not internal