Skip to content

Commit

Permalink
remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Mar 13, 2024
1 parent a8611e1 commit ecde5ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/MycilaTime/MycilaTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
*/
#pragma once

#include <MycilaNTP.h>

#include <WString.h>
#include <time.h>

Expand Down Expand Up @@ -33,7 +31,7 @@ namespace Mycila {
static time_t getUnixTime() {
time_t now;
struct tm timeinfo;
if (!NTP.isSynced() || !getLocalTime(&timeinfo, 5))
if (!getLocalTime(&timeinfo, 5))
return 0;
time(&now);
return now;
Expand Down

0 comments on commit ecde5ad

Please sign in to comment.