Skip to content

Commit b57d900

Browse files
committed
megaAVR: don't use NTP time fallback
It's required by the offloaded ecc anyway, so it will be ok
1 parent f9e8540 commit b57d900

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utility/time/TimeService.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ unsigned long TimeService::getRemoteTime()
105105
return connection_time;
106106
}
107107

108+
#ifndef __AVR__
108109
/* If no valid network time is available try to obtain the
109110
* time via NTP next.
110111
*/
111112
unsigned long const ntp_time = NTPUtils::getTime(_con_hdl->getUDP());
112113
if(isTimeValid(ntp_time)) {
113114
return ntp_time;
114115
}
116+
#endif
115117

116118
#endif /* ifndef HAS_LORA */
117119

0 commit comments

Comments
 (0)