Minor changes

This commit is contained in:
Loic Guegan 2023-07-16 17:41:09 +02:00
parent a3bb6ee6d7
commit 641888e41b
3 changed files with 7 additions and 7 deletions

View file

@ -6,8 +6,8 @@
#include <signal.h>
#include "utils.h"
#ifndef LOGGER_DELAY
#define LOGGER_DELAY 0
#ifndef LOGGERS_DELAY
#define LOGGERS_DELAY 0
#endif
// Global:
@ -86,8 +86,8 @@ int main (int argc, char *argv [])
fprintf(logptr,"%d,%ld,%d\n",power_ts.tv_sec,power_ts.tv_nsec,power);
// Reset power register file:
fseek(regptr,0,SEEK_SET);
#if LOGGER_DELAY > 0
usleep(LOGGER_DELAY*1000);
#if LOGGERS_DELAY > 0
usleep(LOGGERS_DELAY*1000);
#endif
printf("Tick\n"); fflush(stdout);
}