|
@ -68,6 +68,15 @@ reaction_structer_t reaction_structer = { |
|
|
.reaction_start_time = 0, |
|
|
.reaction_start_time = 0, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|
|
|
* *******************************************************wifi******************************************************** * |
|
|
|
|
|
***********************************************************************************************************************/ |
|
|
|
|
|
wifi_structer_t wifi_structer = { |
|
|
|
|
|
.wifi_connect_flag = false, |
|
|
|
|
|
.wifi_distribution_network_flag = false, |
|
|
|
|
|
.wifi_max_connect_num = 10, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
static void T_all_light_init(void) |
|
|
static void T_all_light_init(void) |
|
|
{ |
|
|
{ |
|
|
T_power_light_init(&power_state_light_structer); |
|
|
T_power_light_init(&power_state_light_structer); |
|
@ -105,6 +114,14 @@ void process_key_event(void) |
|
|
|
|
|
|
|
|
void process_key_long_press_event(void) |
|
|
void process_key_long_press_event(void) |
|
|
{ |
|
|
{ |
|
|
|
|
|
/* 配网 */ |
|
|
|
|
|
if (!wifi_structer.wifi_distribution_network_flag) |
|
|
|
|
|
{ |
|
|
|
|
|
if (T_wifi_distribution_network()) |
|
|
|
|
|
{ |
|
|
|
|
|
wifi_structer.wifi_distribution_network_flag = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void T_reaction_schedule(void) |
|
|
void T_reaction_schedule(void) |
|
|