This file is meant to be included in sketch files in order to make data available to Kaleidoscope functions. In particular, the size of the keymaps[] array (i.e. the number of defined layers), which is needed in order to prevent reading uninitialized memory past the end of that array due to Key_KeymapNext_Momentary.pull/244/head
parent
7ddc0249bb
commit
50ac31d0f5
@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
// Calculate the number of layers defined in the "keymaps[]"
|
||||
// array. This needs to be included in the sketch after "keymaps" is
|
||||
// defined
|
||||
const uint8_t LayerCount PROGMEM = sizeof(keymaps) / sizeof(*keymaps);
|
Loading…
Reference in new issue