Commit b46f825
committed
[fix] 4 ports leakage
We need to turn off other ports everytime we choose one.
TEST= different pd controller:
no ac->
plug 60w ac to p1 (charge from 60w, and usb power meter 60w= 20V*1.1A)->
plug 45w ac to p2 (charge from 60w, and usb power meter 60w= 20V*1.1A; 45w= 15V*0.001A)->
remove 60w ac from p1 (charge from 45w, and usb power meter 45w= 15V*1.5A)->
plug 60w ac to p1 (charge from 60w, and usb power meter 60w= 20V*1.1A; 45w= 15V*0.001A)->
remove 45w ac from p2 (charge from 60w, and usb power meter 60w= 20V*1.1A).
same pd controller;
no ac->
plug 60w ac to p1 (charge from 60w, and usb power meter 60w= 20V*1.1A)->
plug 45w ac to p0 (charge from 60w, and usb power meter 60w= 20V*1.1A; 45w= 15V*0.001A)->
remove 60w ac from p1 (charge from 45w, and usb power meter 45w= 15V*1.5A)->
plug 60w ac to p1 (charge from 60w, and usb power meter 60w= 20V*1.1A; 45w= 15V*0.001A)->
remove 45w ac from p0 (charge from 60w, and usb power meter 60w= 20V*1.1A).
Signed-off-by: elmo_lan <hplan1112@gmail.com>1 parent 9acadbf commit b46f825
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1426 | 1426 | | |
1427 | 1427 | | |
1428 | 1428 | | |
1429 | | - | |
| 1429 | + | |
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
1433 | 1433 | | |
1434 | | - | |
| 1434 | + | |
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
| |||
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | | - | |
1448 | | - | |
| 1447 | + | |
1449 | 1448 | | |
1450 | 1449 | | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1451 | 1453 | | |
1452 | | - | |
| 1454 | + | |
1453 | 1455 | | |
1454 | 1456 | | |
1455 | 1457 | | |
| |||
0 commit comments