diff --git a/libraries/Keyboardio-Macros/library.properties b/libraries/Keyboardio-Macros/library.properties index 15fbbe7a..fb9949be 100644 --- a/libraries/Keyboardio-Macros/library.properties +++ b/libraries/Keyboardio-Macros/library.properties @@ -7,3 +7,4 @@ paragraph=... category=Communication url=https://github.com/keyboardio/KeyboardioFirmware architectures=avr +dot_a_linkage=true diff --git a/libraries/Keyboardio-Macros/src/Keyboardio-Macros.cpp b/libraries/Keyboardio-Macros/src/Keyboardio-Macros.cpp index 0014e07c..1e443793 100644 --- a/libraries/Keyboardio-Macros/src/Keyboardio-Macros.cpp +++ b/libraries/Keyboardio-Macros/src/Keyboardio-Macros.cpp @@ -57,5 +57,3 @@ static bool handleMacroEvent(Key mappedKey, byte row, byte col, uint8_t keyState Macros_::Macros_ (void) { event_handler_hook_add (handleMacroEvent); } - -Macros_ Macros; diff --git a/libraries/Keyboardio-Macros/src/Keyboardio-Macros.h b/libraries/Keyboardio-Macros/src/Keyboardio-Macros.h index 6717ee4e..6773bbb5 100644 --- a/libraries/Keyboardio-Macros/src/Keyboardio-Macros.h +++ b/libraries/Keyboardio-Macros/src/Keyboardio-Macros.h @@ -14,4 +14,4 @@ class Macros_ { void play(const macro_t *macro_p); }; -extern Macros_ Macros; +static Macros_ Macros;