V1.8.37 - Reset AFC offset when setting frequency from client app

pull/67/head
Dave Akerman 2020-06-05 16:24:03 +00:00
rodzic 5d488fd291
commit 9339b4f414
3 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -232,6 +232,11 @@ Many thanks to David Brooke for coding this feature and the AFC.
Change History
==============
06/05/2020 - V1.8.37
--------------------
Reset AFC offset to zero after setting frequency from client app
10/02/2020 - V1.8.35
--------------------

Wyświetl plik

@ -46,7 +46,7 @@
#include "udpclient.h"
#include "lifo_buffer.h"
#define VERSION "V1.8.36"
#define VERSION "V1.8.37"
bool run = TRUE;
// RFM98

Wyświetl plik

@ -115,6 +115,15 @@ void ProcessJSONClientLine(int connfd, char *line)
value = strtok_r( NULL, "\n", &saveptr);
SetConfigValue(setting, value);
if (strstr(line, "frequency_0") != NULL)
{
Config.LoRaDevices[0].FrequencyOffset = 0;
}
else if (strstr(line, "frequency_1") != NULL)
{
Config.LoRaDevices[1].FrequencyOffset = 0;
}
}
else if (strchr(line, ':') != NULL)
{