fix:优化sntp服务

fix:主函数中初始化增加错误判断处理
代码格式化
This commit is contained in:
Zip
2019-01-29 15:56:25 +08:00
parent 8b3cb142d8
commit fa570549a9
10 changed files with 235 additions and 49 deletions

View File

@@ -140,7 +140,7 @@ void wifi_init( void )
mico_system_notify_register( mico_notify_DHCP_COMPLETED, (void *) wifi_get_ip_callback, NULL );
//wifi<66><69><EFBFBD><EFBFBD>״̬<D7B4>ı<EFBFBD><C4B1>ص<EFBFBD>
mico_system_notify_register( mico_notify_WIFI_STATUS_CHANGED, (void*) wifi_status_callback, NULL );
sntp_init();
//sntp_init();
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>wifi<66><69><EFBFBD><EFBFBD>
if ( !mico_rtos_is_timer_running( &wifi_led_timer ) ) mico_rtos_start_timer( &wifi_led_timer );