Fixed reference to "CREATE_KEYMAP" (should have been "KEYMAPS")

The macro for defining the keymap (and also storing its size (in
layers)) isn't named `CREATE_KEYMAP()`; it's `KEYMAPS()`.
pull/253/head
Michael Richters 7 years ago
parent 75a16eeb96
commit 918f25b623

@ -132,7 +132,7 @@ void Layer_::move(uint8_t layer) {
// Activate a given layer // Activate a given layer
void Layer_::on(uint8_t layer) { void Layer_::on(uint8_t layer) {
// If we're trying to turn on a layer that doesn't exist, abort (but // If we're trying to turn on a layer that doesn't exist, abort (but
// if the keymap wasn't defined using CREATE_KEYMAP(), proceed anyway // if the keymap wasn't defined using the KEYMAPS() macro, proceed anyway
if (layer_count != 0 && layer >= layer_count) if (layer_count != 0 && layer >= layer_count)
return; return;

Loading…
Cancel
Save