410 Private slot to synchronize the device clock to network time. |
410 Private slot to synchronize the device clock to network time. |
411 """ |
411 """ |
412 from ..NtpParametersDialog import NtpParametersDialog |
412 from ..NtpParametersDialog import NtpParametersDialog |
413 |
413 |
414 device = self.__mpy.getDevice() |
414 device = self.__mpy.getDevice() |
415 if not device.getDeviceData("ntp"): |
415 if not device.hasNetworkTime(): |
416 if device.hasCircuitPython(): |
416 if device.hasCircuitPython(): |
417 EricMessageBox.warning( |
417 EricMessageBox.warning( |
418 None, |
418 None, |
419 self.tr("Set Network Time"), |
419 self.tr("Set Network Time"), |
420 self.tr( |
420 self.tr( |