fl16: Re-enable NKRO but only in OS

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2023-11-27 14:12:17 +08:00
parent 7682b2378d
commit 9533b165fc
3 changed files with 8 additions and 2 deletions

View File

@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": false,
"nkro": true,
"audio": false
},
"debounce": 5,

View File

@ -235,6 +235,12 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
}
//#endif
// Enable NKRO only in OS. Can cause issues with some pre-boot environments
// Framework UEFI is ok, but I think grub can't handle it properly
if (!bios_mode) {
keymap_config.nkro = 1;
}
if (!handle_bios_hotkeys(keycode, record)) {
return false;
}

View File

@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": false,
"nkro": true,
"audio": false
},
"debounce": 5,