yaclf
This commit is contained in:
@@ -48,9 +48,7 @@ static void setSystemClock(time_t epoch) {
|
||||
settimeofday(&tv, nullptr);
|
||||
}
|
||||
|
||||
static bool rtcValid() {
|
||||
return rtcClockMagic == CLOCK_RTC_MAGIC && rtcEpoch > 0;
|
||||
}
|
||||
static bool rtcValid() { return rtcClockMagic == CLOCK_RTC_MAGIC && rtcEpoch > 0; }
|
||||
|
||||
/// Capture current time + LP timer into RTC memory, and epoch into NVS.
|
||||
static void capture() {
|
||||
@@ -140,9 +138,7 @@ bool isSynced() {
|
||||
return time(nullptr) > 1577836800; // > 2020-01-01
|
||||
}
|
||||
|
||||
bool isApproximate() {
|
||||
return clockApproximate;
|
||||
}
|
||||
bool isApproximate() { return clockApproximate; }
|
||||
|
||||
void formatTime(char* buf, size_t bufSize, bool use24h) {
|
||||
if (!isSynced()) {
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
|
||||
#include <GfxRenderer.h>
|
||||
#include <HalClock.h>
|
||||
|
||||
#include "CrossPointSettings.h"
|
||||
#include <I18n.h>
|
||||
#include <Logging.h>
|
||||
#include <WiFi.h>
|
||||
#include <esp_sntp.h>
|
||||
|
||||
#include "CrossPointSettings.h"
|
||||
#include "MappedInputManager.h"
|
||||
#include "activities/network/WifiSelectionActivity.h"
|
||||
#include "components/UITheme.h"
|
||||
|
||||
Reference in New Issue
Block a user