increase watchdog timer to 10s since the device/USB stack sometimes needs longer

This commit is contained in:
King Kévin 2020-09-12 14:07:04 +02:00
parent 471e8dab20
commit 6f08d0e4ab
1 changed files with 2 additions and 2 deletions

View File

@ -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];