Move Time set from system to main (#4583)

This commit is contained in:
Jonathan Bennett authored and GitHub committed 2024-08-29 05:39:30 -05:00
1 parent 50f06840d7
commit 92eae39a1b
2 files changed
+6 -7

No files matched your search

-7
View File
@@ -1,6 +1,5 @@
#include "CryptoEngine.h"
#include "PortduinoGPIO.h"
#include "RTC.h"
#include "SPIChip.h"
#include "mesh/RF95Interface.h"
#include "sleep.h"
@@ -8,7 +7,6 @@
#include <Utility.h>
#include <assert.h>
#include <time.h>
#include "PortduinoGlue.h"
#include "linux/gpio/LinuxGPIOPin.h"
@@ -372,11 +370,6 @@ void portduinoSetup()
}
}
struct timeval tv;
tv.tv_sec = time(NULL);
tv.tv_usec = 0;
perhapsSetRTC(RTCQualityNTP, &tv);
return;
}