power: charge animation: allow ctrl+c to exit extrem low charging
Change-Id: I736c2617a4d51085bc91377f1013d7f4b198c9fc Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
8526ae77a4
commit
5fc2a70c78
|
|
@ -400,6 +400,11 @@ static int charge_extrem_low_power(struct udevice *dev)
|
|||
printf("get voltage failed: %d\n", voltage);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ctrlc()) {
|
||||
printf("Extrem low charge: exit by ctrl+c\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
autowakeup_timer_uninit();
|
||||
|
|
|
|||
Loading…
Reference in New Issue