Brief description of Layer.on() & Layer.off()

pull/252/head
Michael Richters 7 years ago committed by Jesse Vincent
parent 0a41083881
commit 75a16eeb96

@ -129,6 +129,7 @@ void Layer_::move(uint8_t layer) {
on(layer); on(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 CREATE_KEYMAP(), proceed anyway
@ -147,6 +148,7 @@ void Layer_::on(uint8_t layer) {
updateActiveLayers(); updateActiveLayers();
} }
// Deactivate a given layer
void Layer_::off(uint8_t layer) { void Layer_::off(uint8_t layer) {
bool wasOn = isOn(layer); bool wasOn = isOn(layer);

Loading…
Cancel
Save