Skip to content

Commit 35476cb

Browse files
committed
fwk: removed battery error in led policy and controlled in led.c
Signed-off-by: Josh-Tsai <josh_tsai@compal.com>
1 parent d439597 commit 35476cb

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

zephyr/program/lotus/azalea/led_policy.dtsi

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,6 @@
5656
};
5757
};
5858

59-
power-state-error {
60-
charge-state = "LED_PWRS_ERROR";
61-
62-
color-0 {
63-
led-color = <&color_red>;
64-
period-ms = <500>;
65-
};
66-
color-1 {
67-
led-color = <&color_blue>;
68-
period-ms = <500>;
69-
};
70-
};
71-
7259
power-state-s0 {
7360
chipset-state = "POWER_S0";
7461

zephyr/program/lotus/lotus/led_policy.dtsi

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,6 @@
4040
};
4141
};
4242

43-
power-state-error {
44-
charge-state = "LED_PWRS_ERROR";
45-
46-
color-0 {
47-
led-color = <&color_red>;
48-
period-ms = <1000>;
49-
};
50-
color-1 {
51-
led-color = <&color_blue>;
52-
period-ms = <1000>;
53-
};
54-
};
55-
5643
power-state-idle {
5744
charge-state = "LED_PWRS_IDLE";
5845

zephyr/program/lotus/src/led.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,14 +499,14 @@ static void led_tick(void)
499499
return;
500500

501501
/* Battery disconnect active signal */
502-
if (battery_is_cut_off()) {
502+
if (battery_is_cut_off() || (battery_is_present() != BP_YES)) {
503503
colors[0] = LED_RED;
504504
colors[1] = LED_BLUE;
505505
colors[2] = LED_OFF;
506506
#ifdef CONFIG_BOARD_LOTUS
507507
multifunction_leds_control(colors, 2, 1000);
508508
#else
509-
multifunction_leds_control(colors, 2, 400);
509+
multifunction_leds_control(colors, 2, 500);
510510
#endif
511511
return;
512512
}

0 commit comments

Comments
 (0)