Add config support for hex-mode

This commit is contained in:
Martin Lund 2022-06-17 10:58:55 +02:00
parent 1b2f445ed9
commit f48402f7ed
2 changed files with 13 additions and 1 deletions

View file

@ -154,7 +154,17 @@ static int data_handler(void *user, const char *section, const char *name,
{
option.local_echo = false;
}
}
else if (!strcmp(name, "hex-mode"))
{
if (!strcmp(value, "enable"))
{
option.hex_mode = true;
}
else if (!strcmp(value, "disable"))
{
option.hex_mode = false;
}
}
else if (!strcmp(name, "timestamp"))
{