Skip to content

Commit

Permalink
Add a simple way of jumping to the teensy's bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Mar 6, 2015
1 parent 756194c commit 5ad92cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions keymap.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include <stdint.h>
#include <stdbool.h>
#include "bootloader.h"
#include "command.h"
#include "keycode.h"
#include "print.h"
#include "report.h"
#include "keymap.h"

Expand All @@ -15,3 +18,16 @@ const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};

const uint16_t PROGMEM fn_actions[] = {};

bool command_extra(uint8_t code)
{
if(code == KC_B){
clear_keyboard();
print("\n\nJump to bootloader... ");
_delay_ms(1000);
bootloader_jump();
print("failed.\n");
}

return false;
}

0 comments on commit 5ad92cd

Please sign in to comment.