Add reset to bootloader command for Launch keyboard

This commit is contained in:
Jeremy Soller 2021-01-22 12:46:49 -07:00
parent fc0dc264ba
commit a1ab70c3a2
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -12,6 +12,8 @@ enum Command {
CMD_BOARD = 2,
// Read version string
CMD_VERSION = 3,
// Reset to bootloader
CMD_RESET = 6,
// Get keyboard map index
CMD_KEYMAP_GET = 9,
// Set keyboard map index
@ -100,6 +102,9 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
strncpy((char *)&data[2], QMK_VERSION, length - 2);
data[1] = 0;
break;
case CMD_RESET:
bootloader_jump();
break;
case CMD_KEYMAP_GET:
{
uint16_t value = 0;