mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-16 15:08:15 +08:00
修复代码错误
This commit is contained in:
@@ -40,9 +40,7 @@ static OSStatus system_config_mode_worker( void *arg )
|
||||
|
||||
micoWlanPowerOn();
|
||||
#if (MICO_WLAN_CONFIG_MODE == CONFIG_MODE_EASYLINK)
|
||||
err = mico_easylink( in_context, MICO_TRUE, MICO_FALSE );
|
||||
#elif (MICO_WLAN_CONFIG_MODE == CONFIG_MODE_EASYLINK_WITH_SOFTAP)
|
||||
err = mico_easylink( in_context, MICO_TRUE, MICO_TRUE );
|
||||
err = mico_easylink( in_context, MICO_TRUE );
|
||||
#elif ( MICO_WLAN_CONFIG_MODE == CONFIG_MODE_SOFTAP)
|
||||
err = mico_easylink_softap( in_context, MICO_TRUE );
|
||||
#elif ( MICO_WLAN_CONFIG_MODE == CONFIG_MODE_MONITOR)
|
||||
@@ -100,9 +98,8 @@ OSStatus mico_system_init( mico_Context_t* in_context )
|
||||
|
||||
#ifdef MICO_WLAN_CONNECTION_ENABLE
|
||||
#ifndef EasyLink_Needs_Reboot
|
||||
/* Create a worker thread for user handling wlan auto-conf event, this worker thread only has
|
||||
one event on queue, avoid some unwanted operation */
|
||||
err = mico_rtos_create_worker_thread( &wlan_autoconf_worker_thread, MICO_APPLICATION_PRIORITY, 0x500, 1 );
|
||||
/* Create a worker thread for user handling wlan auto-conf event */
|
||||
err = mico_rtos_create_worker_thread( &wlan_autoconf_worker_thread, MICO_APPLICATION_PRIORITY, 0x300, 1 );
|
||||
require_noerr_string( err, exit, "ERROR: Unable to start the autoconf worker thread." );
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user