fl16: Refactor factory mode

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer
2023-08-08 20:32:22 +08:00
parent ddfb8f4934
commit 436a9cc02c
2 changed files with 14 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
#include "factory.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
@@ -84,3 +84,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_U, KC_V, KC_W, KC_X
)
};
void enable_factory_mode(bool enable) {
if (enable)
layer_on(2);
else
layer_off(2);
}