This macro allows the definition of the LayerCount variable and the keymaps[] array together. It shouldn't break old sketches, but this is probably not all that's necessary; LayerCount still doesn't get initialized outside the macro.pull/244/head
parent
50ac31d0f5
commit
de39e20d78
@ -1,6 +0,0 @@
|
|||||||
#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