Skip to content

Commit 36f1361

Browse files
committed
led fix arrays
1 parent 712b3c3 commit 36f1361

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/system/led.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,39 +175,39 @@ static void led_resume(void)
175175
#endif
176176

177177
#ifdef LED_RGB_COLOR
178-
static int led_pwm_period[4][3] = {
178+
static int led_pwm_period[5][3] = {
179179
{CONFIG_LED_DEFAULT_COLOR_R, CONFIG_LED_DEFAULT_COLOR_G, CONFIG_LED_DEFAULT_COLOR_B}, // Default
180180
{0, 10000, 0}, // Success
181181
{10000, 0, 0}, // Error
182182
{8000, 2000, 0}, // Charging
183183
{0, 0, 10000}, // Pairing
184184
};
185185
#elif defined(LED_TRI_COLOR)
186-
static int led_pwm_period[4][3] = {
186+
static int led_pwm_period[5][3] = {
187187
{0, 0, 10000}, // Default
188188
{0, 10000, 0}, // Success
189189
{10000, 0, 0}, // Error
190190
{6000, 4000, 0}, // Charging
191191
{0, 0, 10000}, // Pairing
192192
};
193193
#elif defined(LED_RG_COLOR)
194-
static int led_pwm_period[4][2] = {
194+
static int led_pwm_period[5][2] = {
195195
{CONFIG_LED_DEFAULT_COLOR_R, CONFIG_LED_DEFAULT_COLOR_G}, // Default
196196
{0, 10000}, // Success
197197
{10000, 0}, // Error
198198
{8000, 2000}, // Charging
199199
{4000, 6000}, // Pairing
200200
};
201201
#elif defined(LED_DUAL_COLOR)
202-
static int led_pwm_period[4][2] = {
202+
static int led_pwm_period[5][2] = {
203203
{0, 10000}, // Default
204204
{0, 10000}, // Success
205205
{10000, 0}, // Error
206206
{6000, 4000}, // Charging
207207
{0, 10000}, // Pairing
208208
};
209209
#else
210-
static int led_pwm_period[4][1] = {
210+
static int led_pwm_period[5][1] = {
211211
{10000}, // Default
212212
{10000}, // Success
213213
{10000}, // Error

0 commit comments

Comments
 (0)