zy12pdn-oss icon indicating copy to clipboard operation
zy12pdn-oss copied to clipboard

Fix max current error

Open Leseratte10 opened this issue 1 year ago • 0 comments

I have absolutely no experience with this module so maybe this change I'm requesting is wrong - if it is, sorry for wasting your time.

But this code for non-PD USB2 support looks wrong, it first sets active_voltage to 5000 (5 V), and then immediately afterwards it sets active_voltage down to 900 (900 mV).

This looks a lot like a typo and the code was supposed to set active_max_current to 900 (900 mA) instead.

Leseratte10 avatar Sep 19 '22 10:09 Leseratte10