diff --git a/habitat.c b/habitat.c index a0bc84a..ed51447 100644 --- a/habitat.c +++ b/habitat.c @@ -78,6 +78,9 @@ void UploadTelemetryPacket(int Channel) // Set the timeout curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5); + + // RJH capture http errors and report + curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); // Avoid curl library bug that happens if above timeout occurs (sigh) curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);