Skip to content

Commit

Permalink
Merge pull request qmk#21 from wejn/disable_bootmagic
Browse files Browse the repository at this point in the history
Nerf bootmagic_lite functionality for Svalboard.
  • Loading branch information
morganvenable authored Mar 28, 2024
2 parents 8ae9f5f + e3edf16 commit e022c84
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions keyboards/svalboard/svalboard.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
#include "svalboard.h"

#ifndef SVALBOARD_REENABLE_BOOTMAGIC_LITE
// This is to override `bootmagic_lite` feature (see docs/feature_bootmagic.md),
// which can't be turned off in the usual way (via info.json) because setting
// `VIA_ENABLE` forces `BOOTMAGIC_ENABLE` in `builddefs/common_features.mk`.
//
// Obviously if you find this feature useful, you might want to define the
// SVALBOARD_... gating macro, and then possibly also (re-)define the
// `"bootmagic": { "matrix": [X,Y] },` in `info.json` to point the matrix at
// a more useful key than the [0,0] default. Ideally a center key, which is
// normally ~always present. Because the default (thumb knuckle) means that
// if you boot with the key pulled out, the eeprom gets cleared.

void bootmagic_lite(void) {
// boo!
}
#endif

#ifdef PS2_MOUSE_ENABLE
#include "ps2_mouse.h"
#include "ps2.h"
Expand Down

0 comments on commit e022c84

Please sign in to comment.