File tree Expand file tree Collapse file tree 3 files changed +2
-28
lines changed
Expand file tree Collapse file tree 3 files changed +2
-28
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments