File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ static enum ec_status cmd_charging_limit_control(struct host_cmd_handler_args *a
348
348
349
349
if (p -> modes & CHG_LIMIT_DISABLE ) {
350
350
charging_maximum_level = 0 ;
351
+ system_set_bbram (SYSTEM_BBRAM_IDX_CHG_MAX , 0 );
351
352
}
352
353
353
354
if (p -> modes & CHG_LIMIT_SET_LIMIT ) {
Original file line number Diff line number Diff line change @@ -229,7 +229,6 @@ static void set_active_port_color(int color)
229
229
static void led_set_battery (void )
230
230
{
231
231
static int battery_ticks ;
232
- uint32_t chflags = charge_get_flags ();
233
232
234
233
battery_ticks ++ ;
235
234
@@ -263,14 +262,8 @@ static void led_set_battery(void)
263
262
break ;
264
263
case PWR_STATE_ERROR :
265
264
case PWR_STATE_CHARGE_NEAR_FULL :
266
- set_active_port_color (EC_LED_COLOR_WHITE );
267
- break ;
268
265
case PWR_STATE_IDLE :
269
- if (chflags & CHARGE_FLAG_FORCE_IDLE )
270
- set_active_port_color ((battery_ticks & 0x4 ) ?
271
- EC_LED_COLOR_AMBER : -1 );
272
- else
273
- set_active_port_color (EC_LED_COLOR_WHITE );
266
+ set_active_port_color (EC_LED_COLOR_WHITE );
274
267
break ;
275
268
default :
276
269
break ;
You can’t perform that action at this time.
0 commit comments