aboutsummaryrefslogtreecommitdiffstats
path: root/src/modbuslog.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-13 02:16:29 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-13 02:16:29 +0000
commitbb2ff32e5a548e650c6aa86a7d1e57f7cb6ab34b (patch)
tree0f87c2558c1c5625be3d5ae6c507d6d3bbbe0017 /src/modbuslog.c
parent9eebde6a9eac455c989ea1efa5e0106a20037f12 (diff)
downloadverteco-bb2ff32e5a548e650c6aa86a7d1e57f7cb6ab34b.tar.gz
modbuslog: reindent
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);
}
}