Add missing options to show configuration

This commit is contained in:
Martin Lund 2024-04-20 14:51:45 +02:00
parent 51bfa68bdd
commit b05f38abd0
6 changed files with 64 additions and 11 deletions

View file

@ -35,6 +35,7 @@
#include "tty.h"
#include "xymodem.h"
#include "log.h"
#include "script.h"
#define MAX_BUFFER_SIZE 2000 // Maximum size of circular buffer
@ -523,3 +524,18 @@ void script_run(int fd)
lua_close(L);
}
const char *script_run_state_to_string(script_run_t state)
{
switch (state)
{
case SCRIPT_RUN_ONCE:
return "once";
case SCRIPT_RUN_ALWAYS:
return "always";
case SCRIPT_RUN_NEVER:
return "never";
default:
return "Unknown";
}
}