aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modbuslog.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index 4c8ac60..5142646 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -141,6 +141,10 @@ int main(int argc, char *argv[]) {
int rc;
int i;
+ // used to force a reading 2 mins after power on
+ int firstrun;
+ firstrun = 1;
+
// SIGALRM used to wake for loop up every 60 secs
// sleep puts whole thread to sleep which isn't what we want
// other methods involve CPU spinlocks which are inefficient
@@ -201,8 +205,8 @@ int main(int argc, char *argv[]) {
else
intervalduration = intervalvalue * 60;
- // if we match the required time for the reading
- if (unixtime_min % intervalduration == 0) {
+ // if we match the required time for the reading or first run
+ if ((unixtime_min % intervalduration == 0)||firstrun) {
//printf("specified minute. %d %d\n", unixtime_min,
// intervalduration);
@@ -383,6 +387,8 @@ int main(int argc, char *argv[]) {
}
//printf("%d ", slaveid);
}
+ // revert to normal timing
+ firstrun=0;
//printf("%d\n", unixtime_min);
}
}
lass='nohover-highlight'> There were some changes at Portugal channel frequencies, mostly in 2020. Update the DVB-T channel list accordingly, in order to reflect the current list of emitters. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update Brazilian ISDB-T tablesMauro Carvalho Chehab549-2923/+13860 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update satellite channel lists from LyngsatMauro Carvalho Chehab54-1882/+2326 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24 only includes transmitters where there have been changes Link: https://lore.kernel.org/linux-media/20210128234622.75009-1-simon@liddicott.com Signed-off-by: Simon Liddicott <simon@liddicott.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312 Data updated according with https://portalbsd.com.br/. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0 There are several entries that used to be at Lyngsat. Several of them were merged with other entries. On others, there's no TV signal anymore. So, drop them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721 Those are are new satellite descriptions that didn't use to exist on Lyngsat. Add them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182 Those two satellites have two names. Use Just one of them. While here, update their frequencies from Lyngsat. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>