|
|
@@ -407,11 +407,10 @@ time_t ntp_sync_to_rtc(const char *host_name)
|
|
|
|
|
|
#ifdef RT_USING_SYSTEM_WORKQUEUE
|
|
|
static struct rt_work ntp_sync_work;
|
|
|
-
|
|
|
static void ntp_sync_work_func(struct rt_work *work, void *work_data)
|
|
|
{
|
|
|
ntp_sync_to_rtc(RT_NULL);
|
|
|
- rt_work_submit(&ntp_sync_work, rt_tick_from_millisecond(NTP_AUTO_SYNC_PERIOD * 1000));
|
|
|
+ rt_work_submit(work, rt_tick_from_millisecond(NTP_AUTO_SYNC_PERIOD * 1000));
|
|
|
}
|
|
|
|
|
|
static int ntp_auto_sync_init(void)
|