315 Private slot to synchronize the device clock to network time. |
315 Private slot to synchronize the device clock to network time. |
316 """ |
316 """ |
317 from ..NtpParametersDialog import NtpParametersDialog |
317 from ..NtpParametersDialog import NtpParametersDialog |
318 |
318 |
319 device = self.__mpy.getDevice() |
319 device = self.__mpy.getDevice() |
320 if not device.getDeviceData("ntp"): |
320 if not device.hasNetworkTime(): |
321 if device.hasCircuitPython(): |
321 if device.hasCircuitPython(): |
322 if device.getDeviceData("ethernet"): |
322 if device.getDeviceData("ethernet"): |
323 moduleName = "adafruit_wiznet5k" |
323 moduleName = "adafruit_wiznet5k" |
324 else: |
324 else: |
325 moduleName = "adafruit_ntp" |
325 moduleName = "adafruit_ntp" |