Skip to content

Commit

Permalink
Add reset to bootloader command for Launch keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jan 22, 2021
1 parent fc0dc26 commit a1ab70c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keyboards/system76/system76_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a1ab70c

Please sign in to comment.