V1.10.3: Limit to 5 retries on SH upload

master
Dave Akerman 2023-09-01 18:51:40 +01:00
rodzic 648b73fb94
commit 563e1bb31b
2 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -45,7 +45,7 @@
#include "udpclient.h"
#include "lifo_buffer.h"
#define VERSION "V1.10.2"
#define VERSION "V1.10.3"
bool run = TRUE;
// RFM98
@ -1165,7 +1165,7 @@ int ProcessTelemetryMessage(int Channel, received_t *Received)
}
else
{
LogMessage("%02d:%02d:%02d Ch%d: %s\n", tm->tm_hour, tm->tm_min, tm->tm_sec, Channel, "Bad UKHAS CRC");
LogMessage("%02d:%02d:%02d Ch%d: %s%s\n", tm->tm_hour, tm->tm_min, tm->tm_sec, Channel, "Bad UKHAS CRC: ", startmessage);
}
startmessage = endmessage + 1;

Wyświetl plik

@ -408,10 +408,9 @@ void *SondehubLoop( void *vars )
// Try to upload active payload, if there is one
if (ActiveSondehubPayloads[Channel].InUse)
{
if (UploadSondehubPosition(Channel))
{
ActiveSondehubPayloads[Channel].InUse = 0;
}
UploadSondehubPosition(Channel); // Upload, with limited retries ifd needed
ActiveSondehubPayloads[Channel].InUse = 0;
}
}