src/eric7/MicroPython/EthernetDialogs/EthernetController.py

branch
eric7
changeset 10230
1311cd5d117e
parent 10167
0a62a4bf749c
child 10439
21c28b0f9e41
equal deleted inserted replaced
10229:e50bbf250343 10230:1311cd5d117e
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"

eric ide

mercurial