We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd4c09d commit 3dfe573Copy full SHA for 3dfe573
src/utility/time/TimeService.cpp
@@ -292,9 +292,11 @@ unsigned long TimeServiceClass::getRemoteTime()
292
* This is the most reliable time source and it will
293
* ensure a correct behaviour of the library.
294
*/
295
- unsigned long const ntp_time = NTPUtils::getTime(_con_hdl->getUDP());
296
- if(isTimeValid(ntp_time)) {
297
- return ntp_time;
+ if(_con_hdl->getInterface() != NetworkAdapter::CELL) {
+ unsigned long const ntp_time = NTPUtils::getTime(_con_hdl->getUDP());
+ if(isTimeValid(ntp_time)) {
298
+ return ntp_time;
299
+ }
300
}
301
302
/* As fallback if NTP request fails try to obtain the
0 commit comments