mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add timeout based timestamps in hex output mode
This change reintroduces timestamping in hex output mode but based on timeout instead of new lines which made no sense. This means that timestamps will only be printed when timeout time has elapsed with no output activity from serial device. Adds option --timestamp-timeout <ms> for setting the timeout value in milliseconds. Defaults to 200 ms.
This commit is contained in:
parent
a8e0d2693d
commit
6fff4939e4
8 changed files with 76 additions and 20 deletions
|
|
@ -230,6 +230,10 @@ static int data_handler(void *user, const char *section, const char *name,
|
|||
{
|
||||
option.timestamp = timestamp_option_parse(value);
|
||||
}
|
||||
else if (!strcmp(name, "timestamp-timeout"))
|
||||
{
|
||||
option.timestamp_timeout = read_integer(value, name, 0, LONG_MAX);
|
||||
}
|
||||
else if (!strcmp(name, "map"))
|
||||
{
|
||||
asprintf(&c.map, "%s", value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue