summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-11-30 22:18:40 +0000
committerDave Hibberd <hibby@debian.org>2024-11-30 22:18:40 +0000
commit697fde312336b04129289ed268043e641ef284cb (patch)
treeea18c846d0e8d6eb0f964372e1adcc83fee14bdf /cMain.c
parentd1c36fce6e52b94d2df9c0eb969c1d72947d1284 (diff)
parent93a10a982d3fcab0c469e2805b2034bba4e59a55 (diff)
Merge branch 'upstream/latest' of git.hibbian.org:Hibbian/linbpq into upstream/latest
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/cMain.c b/cMain.c
index 4f9dc9b..b63a69c 100644
--- a/cMain.c
+++ b/cMain.c
@@ -50,7 +50,6 @@ VOID SendSmartID(struct PORTCONTROL * PORT);
int CanPortDigi(int Port);
int KissEncode(UCHAR * inbuff, UCHAR * outbuff, int len);
void MQTTTimer();
-void SaveMH();
#include "configstructs.h"
@@ -1508,7 +1507,7 @@ BOOL Start()
upnpInit();
- lastSaveSecs = CurrentSecs = lastSlowSecs = time(NULL);
+ CurrentSecs = lastSlowSecs = time(NULL);
return 0;
}
@@ -2106,19 +2105,7 @@ VOID TIMERINTERRUPT()
}
*/
}
-
- // Check Autosave Nodes and MH timer
-
- if (CurrentSecs - lastSaveSecs >= 3600) // 1 per hour
- {
- lastSaveSecs = CurrentSecs;
-
- if (AUTOSAVE == 1)
- SaveNodes();
- if (AUTOSAVEMH == 1)
- SaveMH();
- }
-
+
if (L4TIMERFLAG >= 10) // 1 PER SEC
{
L4TIMERFLAG -= 10;