Mercurial > louis > kiibohd-controller
comparison Debug/cli/cli.c @ 385:d8f61e15aca1
Adding jump to bootloader key
- Now enabled by default
- Added protection around remote jumps
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sun, 11 Oct 2015 22:07:11 -0700 |
parents | 32dfab699fc0 |
children | e581daa76a14 |
comparison
equal
deleted
inserted
replaced
384:82ce1988fefe | 385:d8f61e15aca1 |
---|---|
19 * THE SOFTWARE. | 19 * THE SOFTWARE. |
20 */ | 20 */ |
21 | 21 |
22 // ----- Includes ----- | 22 // ----- Includes ----- |
23 | 23 |
24 // Compiler Includes | |
25 //#include <stdarg.h> | |
26 | |
27 // Project Includes | 24 // Project Includes |
28 #include <buildvars.h> | 25 #include <buildvars.h> |
29 #include "cli.h" | 26 #include "cli.h" |
30 #include <led.h> | 27 #include <led.h> |
31 #include <print.h> | 28 #include <print.h> |
29 #include <kll_defs.h> | |
32 | 30 |
33 | 31 |
34 | 32 |
35 // ----- Variables ----- | 33 // ----- Variables ----- |
36 | 34 |
515 errorLED( CLILEDState ); // Enable/Disable error LED | 513 errorLED( CLILEDState ); // Enable/Disable error LED |
516 } | 514 } |
517 | 515 |
518 void cliFunc_reload( char* args ) | 516 void cliFunc_reload( char* args ) |
519 { | 517 { |
518 if ( flashModeEnabled_define == 0 ) | |
519 { | |
520 print( NL ); | |
521 warn_print("flashModeEnabled not set, cancelling firmware reload..."); | |
522 info_msg("Set flashModeEnabled to 1 in your kll configuration."); | |
523 return; | |
524 } | |
525 | |
520 // Request to output module to be set into firmware reload mode | 526 // Request to output module to be set into firmware reload mode |
521 Output_firmwareReload(); | 527 Output_firmwareReload(); |
522 } | 528 } |
523 | 529 |
524 void cliFunc_reset( char* args ) | 530 void cliFunc_reset( char* args ) |