add: relay/piface support
This commit is contained in:
parent
fa6ceb2bf4
commit
db64e4f820
34 changed files with 1259 additions and 313 deletions
10
logger.c
Normal file
10
logger.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <logger.h>
|
||||
|
||||
char*
|
||||
logger_get_timestamp()
|
||||
{
|
||||
time_t rawtime;
|
||||
time(&rawtime);
|
||||
strftime(_LOGGER_TIMESTAMP, _LOGGER_TIMESTAMP_SIZE, "%Y-%m-%d %H:%M:%S", localtime(&rawtime));
|
||||
return _LOGGER_TIMESTAMP;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue