minor
This commit is contained in:
parent
a7b8a73157
commit
1b23ca28f0
|
@ -101,10 +101,13 @@ int main(void)
|
|||
/* Initialize all configured peripherals */
|
||||
|
||||
MX_LoRaWAN_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
STS_Lamp_Bar_Self_Test_Simple();
|
||||
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
|
||||
|
||||
/* USER CODE END 2 */
|
||||
|
||||
/* Infinite loop */
|
||||
|
|
|
@ -102,7 +102,7 @@ void STS_YunhornSTSEventP1_Process(void)
|
|||
|
||||
void STS_YunhornSTSEventP2_Process(void)
|
||||
{
|
||||
//STS_Lamp_Bar_Refresh(); //TODO XXX eliminate refresh every second.... try
|
||||
STS_Lamp_Bar_Refresh(); //TODO XXX eliminate refresh every second.... try
|
||||
if ((sts_work_mode >= STS_RSS_MODE) && (sts_work_mode <= STS_TOF_RSS_MODE))
|
||||
{
|
||||
STS_RSS_Smart_Presence_Detection();
|
||||
|
@ -563,7 +563,7 @@ void STS_Lamp_Bar_Self_Test_Simple(void)
|
|||
do {
|
||||
STS_Lamp_Bar_Set_STS_RGB_Color(color, luminance_level);
|
||||
HAL_Delay(50);
|
||||
luminance_level += 20;
|
||||
luminance_level += 10;
|
||||
} while (luminance_level < 99);
|
||||
//STS_Lamp_Bar_Set_Dark();
|
||||
}
|
||||
|
|
|
@ -600,8 +600,8 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
|||
switch (GPIO_Pin)
|
||||
{
|
||||
case BUT1_Pin:
|
||||
#if defined(USE_STM32WL55)
|
||||
//sts_reed_hall_ext_int = 1;
|
||||
|
||||
sts_reed_hall_ext_int = 1;
|
||||
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP1), CFG_SEQ_Prio_0);
|
||||
//sts_reed_hall_ext_int = 0;
|
||||
/* Note: when "EventType == TX_ON_TIMER" this GPIO is not initialized */
|
||||
|
@ -609,7 +609,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
|||
{
|
||||
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
|
||||
}
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
||||
case BUT2_Pin:
|
||||
|
|
Loading…
Reference in New Issue