From aad0e3a734a2c25f7853b628f9140284c57a8161 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 3 Oct 2018 08:35:39 +0200 Subject: [PATCH] Declare layer_count extern, so that plugins outside of core can use it too Without declaring it extern, other plugins will not have access to the symbol. Signed-off-by: Gergely Nagy --- src/layers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layers.h b/src/layers.h index e3e3b713..288790c1 100644 --- a/src/layers.h +++ b/src/layers.h @@ -27,6 +27,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { layers }; \ uint8_t layer_count = sizeof(keymaps) / sizeof(*keymaps); +extern uint8_t layer_count; class Layer_ { public: