First implementation of user scripts - very experimental - YMMV

This commit is contained in:
martin.holst@gmail.com 2013-05-21 18:37:43 +00:00
commit 806dc07542
6 changed files with 337 additions and 4 deletions

View file

@ -24,6 +24,7 @@
#include "cmdlf.h"
#include "cmdmain.h"
#include "util.h"
#include "cmdscript.h"
unsigned int current_command = CMD_UNKNOWN;
unsigned int received_command = CMD_UNKNOWN;
@ -42,6 +43,7 @@ static command_t CommandTable[] =
{"hw", CmdHW, 1, "{ Hardware commands... }"},
{"lf", CmdLF, 1, "{ LF commands... }"},
{"quit", CmdQuit, 1, "Quit program"},
{"script", CmdScript, 1,"Run script"},
{NULL, NULL, 0, NULL}
};