Consolidate timestamp implementation in one file

This commit is contained in:
Martin Lund 2022-09-10 23:29:23 +02:00
parent a85cfcf3ef
commit ba2d49d2f7
10 changed files with 202 additions and 139 deletions

View file

@ -52,6 +52,7 @@
#include "setspeed.h"
#include "rs485.h"
#include "alert.h"
#include "timestamp.h"
#include "misc.h"
#ifdef __APPLE__
@ -1188,7 +1189,7 @@ int tty_connect(void)
/* Print timestamp on new line if enabled */
if (next_timestamp && input_char != '\n' && input_char != '\r')
{
now = current_time();
now = timestamp_current_time();
if (now)
{
ansi_printf_raw("[%s] ", now);