kopia lustrzana https://github.com/PiInTheSky/lora-gateway
V1.10.3: Limit to 5 retries on SH upload
rodzic
648b73fb94
commit
563e1bb31b
|
@ -45,7 +45,7 @@
|
||||||
#include "udpclient.h"
|
#include "udpclient.h"
|
||||||
#include "lifo_buffer.h"
|
#include "lifo_buffer.h"
|
||||||
|
|
||||||
#define VERSION "V1.10.2"
|
#define VERSION "V1.10.3"
|
||||||
bool run = TRUE;
|
bool run = TRUE;
|
||||||
|
|
||||||
// RFM98
|
// RFM98
|
||||||
|
@ -1165,7 +1165,7 @@ int ProcessTelemetryMessage(int Channel, received_t *Received)
|
||||||
}
|
}
|
||||||
else
|
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;
|
startmessage = endmessage + 1;
|
||||||
|
|
|
@ -408,10 +408,9 @@ void *SondehubLoop( void *vars )
|
||||||
// Try to upload active payload, if there is one
|
// Try to upload active payload, if there is one
|
||||||
if (ActiveSondehubPayloads[Channel].InUse)
|
if (ActiveSondehubPayloads[Channel].InUse)
|
||||||
{
|
{
|
||||||
if (UploadSondehubPosition(Channel))
|
UploadSondehubPosition(Channel); // Upload, with limited retries ifd needed
|
||||||
{
|
|
||||||
ActiveSondehubPayloads[Channel].InUse = 0;
|
ActiveSondehubPayloads[Channel].InUse = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue