From 41f9545021bec50bf39ee333bf0f3c384e2a6988 Mon Sep 17 00:00:00 2001 From: Zip <76966589@qq.com> Date: Tue, 19 Mar 2019 16:35:00 +0800 Subject: [PATCH] =?UTF-8?q?add:wifi=E8=BF=9E=E6=8E=A5=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=90=8E=E5=AF=BC=E8=87=B4led=E7=9B=B4=E6=8E=A5=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/user_wifi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TC1/user_wifi.c b/TC1/user_wifi.c index c240c5d..4e77b04 100644 --- a/TC1/user_wifi.c +++ b/TC1/user_wifi.c @@ -110,6 +110,10 @@ static void wifi_led_timer_callback( void* arg ) case WIFI_STATE_CONNECTED: user_led_set( 0 ); mico_rtos_stop_timer( &wifi_led_timer ); + if ( relay_out( ) ) + user_led_set( 1 ); + else + user_led_set( 0 ); break; } }