|
@ -55,7 +55,7 @@ static void app_porta_detect_work(void) |
|
|
{ |
|
|
{ |
|
|
log_info("usba attached:\n"); |
|
|
log_info("usba attached:\n"); |
|
|
power_source_set_voltage(ps, 5000); |
|
|
power_source_set_voltage(ps, 5000); |
|
|
power_source_set_current(ps, 2000); |
|
|
power_source_set_current(ps, 3400); |
|
|
usba_plugin_detect_deinit(); |
|
|
usba_plugin_detect_deinit(); |
|
|
usba_plugout_detect_init(); |
|
|
usba_plugout_detect_init(); |
|
|
usba_need_open_vbus_flag = true; |
|
|
usba_need_open_vbus_flag = true; |
|
|