fix initial color of green in onjoinrequest
This commit is contained in:
parent
d159ebee17
commit
b554f4e54c
|
@ -60,7 +60,7 @@ volatile uint8_t sts_reed_hall_result =0, sts_emergency_button_pushed=0; // init
|
|||
extern volatile uint8_t sts_work_mode, sts_cloud_netcolor, sts_lamp_bar_color, sts_status_color, sts_color_occupy_vacant, sts_color_severity_l2_l3;
|
||||
extern volatile uint8_t sts_lamp_bar_flashing_color;
|
||||
volatile uint8_t last_sts_lamp_bar_color=STS_DARK;
|
||||
//extern volatile uint8_t sts_status_color, sts_lamp_bar_color, sts_color_occupy_vacant;//puColor
|
||||
|
||||
extern volatile uint8_t sts_rss_result;
|
||||
extern volatile uint8_t sts_rss_result_changed_flag, sts_hall1_changed_flag, sts_hall2_changed_flag, sts_reed_hall_changed_flag;
|
||||
volatile uint8_t sts_fall_detection_acc_threshold = 30, //0.3g
|
||||
|
@ -1500,7 +1500,7 @@ static void OnJoinRequest(LmHandlerJoinParams_t *joinParams)
|
|||
{
|
||||
UTIL_TIMER_Stop(&JoinLedTimer);
|
||||
|
||||
sts_lamp_bar_color = STS_GREEN;
|
||||
//sts_lamp_bar_color = STS_GREEN;
|
||||
|
||||
#ifndef STM32WLE5xx
|
||||
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET); /* LED_RED */
|
||||
|
|
Loading…
Reference in New Issue