dynamic_keymap: check reset keycode at the time of applying
This commit is contained in:
@ -47,6 +47,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# include "audio.h"
|
||||
#endif /* AUDIO_ENABLE */
|
||||
|
||||
#ifdef VIAL_ENABLE
|
||||
# include "vial.h"
|
||||
#endif
|
||||
|
||||
static bool command_common(uint8_t code);
|
||||
static void command_common_help(void);
|
||||
static void print_version(void);
|
||||
@ -355,6 +359,9 @@ static bool command_common(uint8_t code) {
|
||||
case MAGIC_KC(MAGIC_KEY_BOOTLOADER):
|
||||
case MAGIC_KC(MAGIC_KEY_BOOTLOADER_ALT):
|
||||
print("\n\nJumping to bootloader... ");
|
||||
#ifdef VIAL_ENABLE
|
||||
if (vial_unlocked)
|
||||
#endif
|
||||
reset_keyboard();
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user