def startup(reason=0, **kwargs): if reason == 0: global ntpsyncpoller if ntpsyncpoller is None: ntpsyncpoller = NTPSyncPoller() ntpsyncpoller.start() removeNetworkStart() elif reason == 1: nowTime = time.time() if nowTime > 1514808000: setRTCtime(nowTime)
def startup(session=None, **kwargs): global ntpsyncpoller if ntpsyncpoller is None: ntpsyncpoller = NTPSyncPoller() ntpsyncpoller.start() removeNetworkStart()
def startup(session=None, **kwargs): global ntpsyncpoller ntpsyncpoller = NTPSyncPoller() ntpsyncpoller.start()