aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/modbuslog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index abb2002..281b23b 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -206,7 +206,7 @@ int main(int argc, char *argv[]) {
intervalduration = intervalvalue * 60;
// if we match the required time for the reading or first run
- if ((unixtime_min % intervalduration == 0)||firstrun) {
+ if ((unixtime_min % intervalduration == 0) || firstrun) {
//printf("specified minute. %d %d\n", unixtime_min,
// intervalduration);
@@ -297,7 +297,8 @@ int main(int argc, char *argv[]) {
FILE *filehandle = fopen(log_filename, "a+");
- syslog(LOG_DEBUG, "opening file for append: [%s]", log_filename);
+ syslog(LOG_DEBUG, "opening file for append: [%s]",
+ log_filename);
int16_t registervalue = 0;
@@ -394,7 +395,7 @@ int main(int argc, char *argv[]) {
//printf("%d ", slaveid);
}
// revert to normal timing
- firstrun=0;
+ firstrun = 0;
//printf("%d\n", unixtime_min);
}
}