aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);
}
}
03:46 +0000'>2010-02-07added grouping of widgets by update interval (new file "timer_group.c")mzuther13-168/+441 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1106 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-07BUG: handle negative delays in timer_process() (timer.c)mzuther1-0/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-06timer.c: I had forgotten how to initialize a "struct" :)mzuther1-3/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-06BUG: compensate timers for processing delay ("timer.c")mzuther1-1/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-06timer.c: exchanged "proprietary code" with timeradd() and timersub() functionsmzuther1-14/+10 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04timer.c: removed fruitless changes to variable "flag" from timer_process()mzuther1-2/+0 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04According to its man page, timercmp() is broken on some systems -- applied ↵mzuther1-1/+1 the recommended (and equivalent) change. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04small warning removedmichael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1099 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04clear errno after creating the FIFO by Claas Hilbrechtmichael1-0/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1098 3ae390bd-cb1e-0410-b409-cd5a39f66f1f