mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix timestamp configuration state
This commit is contained in:
parent
8b6a0cf63c
commit
72fd2f2980
2 changed files with 6 additions and 3 deletions
|
|
@ -101,10 +101,14 @@ void print_help(char *argv[])
|
|||
printf("See the man page for more details.\n");
|
||||
}
|
||||
|
||||
const char* timestamp_token(enum timestamp_t timestamp)
|
||||
const char* timestamp_state(enum timestamp_t timestamp)
|
||||
{
|
||||
switch (timestamp)
|
||||
{
|
||||
case TIMESTAMP_NONE:
|
||||
return "disabled";
|
||||
break;
|
||||
|
||||
case TIMESTAMP_24HOUR:
|
||||
return "24hour";
|
||||
break;
|
||||
|
|
@ -163,7 +167,7 @@ void options_print()
|
|||
tio_printf(" Stopbits: %d", option.stopbits);
|
||||
tio_printf(" Parity: %s", option.parity);
|
||||
tio_printf(" Local echo: %s", option.local_echo ? "enabled" : "disabled");
|
||||
tio_printf(" Timestamps: %s", timestamp_token(option.timestamp));
|
||||
tio_printf(" Timestamp: %s", timestamp_state(option.timestamp));
|
||||
tio_printf(" Output delay: %d", option.output_delay);
|
||||
tio_printf(" Auto connect: %s", option.no_autoconnect ? "disabled" : "enabled");
|
||||
if (option.map[0] != 0)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ enum timestamp_t
|
|||
TIMESTAMP_END,
|
||||
};
|
||||
|
||||
const char* timestamp_token(enum timestamp_t timestamp);
|
||||
enum timestamp_t timestamp_option_parse(const char *arg);
|
||||
|
||||
/* Options */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue