@@ -180,34 +180,39 @@ static int led_pwm_period[4][3] = {
180180 {0 , 10000 , 0 }, // Success
181181 {10000 , 0 , 0 }, // Error
182182 {8000 , 2000 , 0 }, // Charging
183+ {0 , 0 , 10000 }, // Pairing
183184};
184185#elif defined(LED_TRI_COLOR )
185186static int led_pwm_period [4 ][3 ] = {
186187 {0 , 0 , 10000 }, // Default
187188 {0 , 10000 , 0 }, // Success
188189 {10000 , 0 , 0 }, // Error
189190 {6000 , 4000 , 0 }, // Charging
191+ {0 , 0 , 10000 }, // Pairing
190192};
191193#elif defined(LED_RG_COLOR )
192194static int led_pwm_period [4 ][2 ] = {
193195 {CONFIG_LED_DEFAULT_COLOR_R , CONFIG_LED_DEFAULT_COLOR_G }, // Default
194196 {0 , 10000 }, // Success
195197 {10000 , 0 }, // Error
196198 {8000 , 2000 }, // Charging
199+ {4000 , 6000 }, // Pairing
197200};
198201#elif defined(LED_DUAL_COLOR )
199202static int led_pwm_period [4 ][2 ] = {
200203 {0 , 10000 }, // Default
201204 {0 , 10000 }, // Success
202205 {10000 , 0 }, // Error
203206 {6000 , 4000 }, // Charging
207+ {0 , 10000 }, // Pairing
204208};
205209#else
206210static int led_pwm_period [4 ][1 ] = {
207211 {10000 }, // Default
208212 {10000 }, // Success
209213 {10000 }, // Error
210214 {10000 }, // Charging
215+ {10000 }, // Pairing
211216};
212217#endif
213218
@@ -303,7 +308,7 @@ static void led_thread(void)
303308 break ;
304309 case SYS_LED_PATTERN_SHORT :
305310 led_pattern_state = (led_pattern_state + 1 ) % 2 ;
306- led_pin_set (SYS_LED_COLOR_DEFAULT , 10000 , led_pattern_state * 10000 );
311+ led_pin_set (SYS_LED_COLOR_PAIRING , 10000 , led_pattern_state * 10000 );
307312 k_msleep (led_pattern_state == 1 ? 100 : 900 );
308313 break ;
309314 case SYS_LED_PATTERN_LONG :
0 commit comments