dynamic_keymap: check reset keycode at the time of applying

This commit is contained in:
Ilya Zhuravlev
2021-01-16 20:23:58 -05:00
parent 4af4b5a4c3
commit 5ebf68afcc
3 changed files with 71 additions and 6 deletions

View File

@ -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;