aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parent9eebde6a9eac455c989ea1efa5e0106a20037f12 (diff)
downloadverteco-bb2ff32e5a548e650c6aa86a7d1e57f7cb6ab34b.tar.gz
modbuslog: reindent
Diffstat (limited to 'src')
-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);
}
}
td>-1/+1 2012-02-07Revert "Second attempt"Jonathan McCrohan2-0/+194 2012-01-29Second attemptJonathan McCrohan2-194/+0 2012-01-29Fix b0rked symbol file.Jonathan McCrohan1-1/+1 2012-01-29Add symbolsJonathan McCrohan3-1/+739 2012-01-26add examples properlyJonathan McCrohan1-0/+2 2012-01-26Update changelogJonathan McCrohan1-3/+6 2012-01-26fix typoJonathan McCrohan1-1/+1 2012-01-26fix accidental description changesJonathan McCrohan1-2/+2 2012-01-26more fucking around to please lintianJonathan McCrohan1-5/+2 2012-01-25Linitan fixesJonathan McCrohan2-3/+2 2012-01-25Split out debug packagesJonathan McCrohan2-1/+6 2011-12-31Fix debian/rulesJonathan McCrohan1-1/+1 2011-12-31Remove shlibsJonathan McCrohan1-2/+0 2011-12-31Remove NMU from changelogJonathan McCrohan1-1/+0 2011-12-31Lintian FixesJonathan McCrohan1-2/+4 2011-12-31Remove Makefile patchJonathan McCrohan1-1/+0 2011-12-31Update MakefilesJonathan McCrohan10-248/+8222 2011-12-31Updated makefilesJonathan McCrohan1-0/+1