aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2020-09-12 14:07:04 +0200
committerKing Kévin <kingkevin@cuvoodoo.info>2020-09-12 14:07:04 +0200
commit6f08d0e4ab6a18daa9411a7fc2eb8501b947e104 (patch)
tree2cdd0762a389357f7575358893e380e1f89ba2e5
parent471e8dab205852c5e558b3e03ba4ee1145f3f57d (diff)
increase watchdog timer to 10s since the device/USB stack sometimes needs longer
-rw-r--r--u2_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/u2_usb.c b/u2_usb.c
index 0f26787..7246e73 100644
--- a/u2_usb.c
+++ b/u2_usb.c
@@ -133,7 +133,7 @@ int main(int argc, char* argv[])
}
signal(SIGALRM, watchdog); // setup watchdog
- alarm(5); // start watchdog (in case connecting to the U2 gets stuck)
+ alarm(10); // start watchdog (in case connecting to the U2 gets stuck)
// UDP socket to send data to influxdb
int influxdb_fd = 0;
@@ -217,7 +217,7 @@ int main(int argc, char* argv[])
continue;
}
- alarm(5); // restart watchdog
+ alarm(10); // restart watchdog
// parse measurement values
meas.seconds = meas.payload[2];