魔盒最新版本,更新了充电检测,鸟叫,dp4对声音的控制,声音模块由于硬件问题暂未实测
This commit is contained in:
@@ -127,8 +127,10 @@ static uint8_t boot_skip_key_wait(void)
|
||||
|
||||
/* USB 在位(充电口有电):说明是插着电源,不是用户凭空按键开机 */
|
||||
for (i = 0; i < 10; i++) {
|
||||
if (bsp_chg_is_low() || bsp_vpwr_is_online()
|
||||
|| get_ldo5v_online_hw()) {
|
||||
/* VPWR/LDO5V are the authoritative external-power indicators.
|
||||
* CHRG is open-drain and is only meaningful after VPWR is present;
|
||||
* do not let an abnormal low PG8 skip the key wait by itself. */
|
||||
if (get_ldo5v_online_hw()) {
|
||||
log_info("boot usb, skip key wait\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user