vial: add security-related features
This commit is contained in:
@@ -46,6 +46,10 @@ extern backlight_config_t backlight_config;
|
||||
# include "haptic.h"
|
||||
#endif
|
||||
|
||||
#ifdef VIAL_ENABLE
|
||||
# include "vial.h"
|
||||
#endif
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
# ifndef GOODBYE_SONG
|
||||
# define GOODBYE_SONG SONG(GOODBYE_SOUND)
|
||||
@@ -121,6 +125,12 @@ __attribute__((weak)) void post_process_record_kb(uint16_t keycode, keyrecord_t
|
||||
__attribute__((weak)) void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
|
||||
|
||||
void reset_keyboard(void) {
|
||||
#ifdef VIAL_ENABLE
|
||||
/* Until keyboard is unlocked, disable processing of the RESET keycode */
|
||||
if (!vial_unlocked)
|
||||
return;
|
||||
#endif
|
||||
|
||||
clear_keyboard();
|
||||
#if defined(MIDI_ENABLE) && defined(MIDI_BASIC)
|
||||
process_midi_all_notes_off();
|
||||
|
||||
Reference in New Issue
Block a user