Mercurial > louis > kiibohd-controller
diff 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 |
line wrap: on
line diff
--- a/Debug/cli/cli.c Fri Oct 09 22:28:31 2015 -0700 +++ b/Debug/cli/cli.c Sun Oct 11 22:07:11 2015 -0700 @@ -21,14 +21,12 @@ // ----- Includes ----- -// Compiler Includes -//#include <stdarg.h> - // Project Includes #include <buildvars.h> #include "cli.h" #include <led.h> #include <print.h> +#include <kll_defs.h> @@ -517,6 +515,14 @@ void cliFunc_reload( char* args ) { + if ( flashModeEnabled_define == 0 ) + { + print( NL ); + warn_print("flashModeEnabled not set, cancelling firmware reload..."); + info_msg("Set flashModeEnabled to 1 in your kll configuration."); + return; + } + // Request to output module to be set into firmware reload mode Output_firmwareReload(); }