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:
Joseph Chen 2019-06-26 13:09:42 +08:00
parent 8526ae77a4
commit 5fc2a70c78
1 changed files with 5 additions and 0 deletions

View File

@ -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();