diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2022-12-09 11:05:49 +0000 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2022-12-09 11:05:49 +0000 |
| commit | ebc845ec8c8ed630f77205fbad9a19174e93785a (patch) | |
| tree | de89bbd9f61fae04015d056e20593d44c3dd8245 /HFCommon.c | |
| parent | e95c1f37c364dba88808b3f298116fca46d6d08c (diff) | |
6.0.23.3023.34
Diffstat (limited to 'HFCommon.c')
| -rw-r--r-- | HFCommon.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -65,6 +65,7 @@ VOID FromLOC(char * Locator, double * pLat, double * pLon); BOOL ToLOC(double Lat, double Lon , char * Locator);
int GetPosnFromAPRS(char * Call, double * Lat, double * Lon);
+char * stristr (char *ch1, char *ch2);
static RECT Rect;
@@ -210,7 +211,8 @@ LRESULT CALLBACK PacWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPara {
if (TNC->ProgramPath)
{
- if (strstr(TNC->ProgramPath, " TNC") || strstr(TNC->ProgramPath, "ARDOP") || strstr(TNC->ProgramPath, "VARA"))
+ if (strstr(TNC->ProgramPath, " TNC") || strstr(TNC->ProgramPath, "ARDOP")
+ || strstr(TNC->ProgramPath, "VARA") || stristr(TNC->ProgramPath, "FREEDATA"))
{
EnableMenuItem(TNC->hMenu, WINMOR_RESTART, MF_BYCOMMAND | MF_ENABLED);
EnableMenuItem(TNC->hMenu, WINMOR_KILL, MF_BYCOMMAND | MF_ENABLED);
@@ -311,7 +313,6 @@ LRESULT CALLBACK PacWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPara case WM_HSCROLL:
{
- DWORD dwPos; // current position of slider
char value[16];
switch (LOWORD(wParam))
@@ -765,10 +766,10 @@ IdTag (random alphanumeric, 12 chars) }
}
- if (ADIF == NULL || ADIF->LOC[0] == 0)
+ if (ADIF == NULL || ADIF->LOC[0] == 0 || ADIF->Call[0] == 0)
return TRUE;
- if (ADIF->StartTime == 0 || ADIF->ServerSID[0] == 0)
+ if (ADIF->StartTime == 0 || ADIF->ServerSID[0] == 0 || ADIF->CMSCall[0] == 0)
return TRUE;
T = time(NULL);
@@ -1853,6 +1854,9 @@ int standardParams(struct TNCINFO * TNC, char * buf) TNC->LISTENCALLS = _strdup(&buf[8]);
strlop(TNC->LISTENCALLS, '\r');
}
+ else if (_memicmp(buf, "MAXCONREQ", 9) == 0) // Hold Time for Busy Detect
+ TNC->MaxConReq = atoi(&buf[9]);
+
else if (_memicmp(buf, "FREQUENCY", 9) == 0)
TNC->Frequency = _strdup(&buf[10]);
else if (_memicmp(buf, "SendTandRtoRelay", 16) == 0)
|
